Microsoft® Windows® 2000 Scripting Guide
« Previous | Next »
If a user is having trouble logging on to the network, it might be because his or her user account has been disabled. Because of this, checking the status of the disabled flag (ADS_UF_ACCOUNTDISABLE) in the userAccountControl attribute is an important preliminary troubleshooting step. If the account is disabled, you can be reasonably sure that the user s trouble logging on is associated with the disabled status of the user account. It is also a useful security precaution to periodically check that user accounts that should be disabled are in fact disabled.
Listing 7.11 contains a script that reads the userAccountControl attribute to determine whether a user account is enabled or disabled. To carry out this task, the script performs the following steps:
Listing 7.11 Checking the Value of the ADS_UF_ACCOUNTDISABLE Flag
|
|
Send us your feedback | « Previous | Next » |