简体   繁体   English

使用Powershell列出活动目录用户显示名称,OU和上次密码更改日期

[英]list active directory User Display Name, OU and last password change date using powershell

I need the powershell script to list AD user names, OU they belonged to and last password change time/date using powershell or Quest ad shell. 我需要使用powershell脚本来列出AD用户名,他们所属的OU以及使用powershell或Quest广告外壳的上次密码更改时间/日期。 I have seen many times the scrips to list the users in a particular OU but haven't found anything to list the users and OUs at the same time. 我已经看过很多次在特定OU中列出用户的脚本,但是没有找到任何内容可以同时列出用户和OU。 So the output I am looking for is: User Full name1, OU name1, Last password reset date1 User Full name2, OU name2, Last password reset date2 User Full name3, OU name3, Last password reset date3 . 因此,我正在寻找的输出是:用户全名1,OU名称1,上次密码重置date1用户全名2,OU名称2,上次密码重置date2用户全名3,OU名称3,上次密码重置date3。 . .

Thank you. 谢谢。

Its pretty simple to build a script but to point you in the right direction the AD attributes you want to search for are: CN,distinguishedName,pwdLastSet. 构建脚本非常简单,但是可以为您指明正确的方向,您要搜索的AD属性是:CN,distinguishedName,pwdLastSet。 Get-QADuser will return password last set in date time format get-aduser will return it in a binary value Get-QADuser将以日期时间格式返回上次设置的密码get-aduser将以二进制值返回

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用PowerShell在内置OU中查找相邻OU中的Active Directory用户对象 - Finding Active Directory user objects in adjacent OU's to built in Users OU using PowerShell 如何使用 Powershell 显示用户的 OU - How to display a user's OU using Powershell 在具有 Powershell 的特定 OU 中的单个列表中显示 AD 用户密码过期日期和密码已过期的用户? - Display AD User Password Expiration Dates and Users with already expired passwords in a single list, in a specific OU with Powershell? 使用Powershell将Active Directory组移动到另一个OU - Move Active Directory Group to Another OU using Powershell 如何使用Powershell更改Active Directory中的显示名称? - How can I change the display name in Active Directory with powershell? Powershell Active Directory 脚本 - 通过更改显示名称批量禁用 - Powershell Active Directory Scripting - Bulk disable with change of display name 我可以使用Powershell在Active Directory中更改自己的密码吗? - Can I change my own password in Active Directory using Powershell 尝试在 Ansible 中使用 Powershell 检索 OU 时未显示 Active Directory OU - Active Directory OU not being shown when trying to retrieve the OU using Powershell in Ansible Active Directory Powershell-获取OU详细信息 - Active Directory Powershell - Get OU details Powershell在Active Directory中登录用户OU - Powershell get Logged on Users OU in Active Directory
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM