Microsoft® Windows® 2000 Scripting Guide
« Previous | Next »
To determine when a password will expire, it is important to know when the password was last set. Determining when a password was last set requires that you read the pwdLastSet attribute.
You can use the PasswordLastChanged property of the IADsUser interface to determine the last time that a user changed his or her user account password.
Listing 7.5 contains a script that checks the exact date and time when a user account password was last changed. To carry out this task, the script performs the following steps:
Listing 7.5 Determining When a Password Was Last Set
|
|
Send us your feedback | « Previous | Next » |