Trying to write a script that will display the age of a users password. This is the non-working one I have so far:
Thanks!
[!]The AutoSavers![/!]
Code:
Dim UserName
Dim GroupName
UserName = InputBox("Enter the display name (example: Firstname Lastname) of the USER:")
GroupName = InputBox("Enter the main group (example: Engineering) of the user:")
Set objUser = GetObject("LDAP://CN=" & UserName ,"OU=" & GroupName ,"DC=domainname,DC=com")
Wscript.Echo "Password last changed: " & objUser.PasswordLastChanged
Thanks!
[!]The AutoSavers![/!]