|
server
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
list computers accounts that never have changed their password
Hello, I need your help, I need to find a script, that list computers
accounts that never have changed their password, in an OU. thanks Gustavo wrote:
> Hello, I need your help, I need to find a script, that list computers You can use ADO in a VBScript program for this. See this link:> accounts that never have changed their password, in an OU. http://www.rlmueller.net/ADOSearchTips.htm In this case (using the variables in the above link): strFilter = "(&(objectCategory=computer)(pwdLastSet=0))" strAttributes = "sAMAccountName" strBase = "<LDAP://ou=MyOU,dc=MyDomain,dc=com>" You must specify the full Distinguished Name of the OU. sAMAccountName is the NetBIOS name of the computer object with a trailing "$" appended to the end. You can retrieve the value of distinguishedName instead. pwdLastSet is an Integer8 (64-bit) attribute representing the date/time when the password was last set. A value of 0 means never. |
|||||||||||||||||||||||