[英]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.