This will give you the age of the password in days :-
on error resume next
dim wshshell, objuser, myfile, FSO
objPath =inputbox("Please enter users login"
adsPath = "WinNT://idghead/" & objPath &",user"
Set objuser = GetObject(adsPath)
set FSO = CreateObject("scripting.FileSystemObject"
set myFile = fso.CreateTextFile(""&objpath&".txt", true)
myfile.writeline("Password Age : "&objuser.passwordage/86400&""
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.