hi,
Thanx for the feedback. I am not looking for the maximum password age as set in the local policy settings. I want to query the local accounts and find out when the last time the password was reset... So I want to get an answer that account "Administrator"'s password was last reset 30 days ago (i.e. it is 30 days old)
Hope that clarifys. If not, please let me know.
Thanx
Main Topics
Browse All Topics





by: jimbobmcgeePosted on 2009-09-08 at 04:49:34ID: 25280840
I think the policy setting for Maximum Password Age is stored in the Registry at HKEY_LOCAL_MACHINE\SYSTEM\ CurrentCon trolSet\Se rvices\Net logon\Para meters\max imumpasswo rdage.
Provided you have permissions, you can access the Registry remotely, using the RegistryKey object or WMI. The following (untested) code should manage it:
Select allOpen in new window