Local User Settings: password expiration dates

Version 2

    This was specifically written for Windows OSs before W2K for which we don't have the user settings native objects in the OM, but you can still use this script on W2K+ machines if you find that the user settings native object doesn't do what you want it to, but don't abuse the net user command, lest you inadvertently reset a password or two.


    This particular script takes all users on the machine and tests to ensure that none have a password expiration setting greater than 90 days from the last change. 


    Script can be modified to test any setting from the net user , followed by a list of non-compliant users.