Loading |
VBScript |
JavaScript |
Powershell |
Search Options: List the Status of a UserContent of List the Status of a User.vbsMD5 Hash: 55A306C4A9E7A76842B8FA89870E562C |
||
' Description: Identifies whether a user account is enabled or disabled.
Set objUser = GetObject _ ("LDAP://cn=myerken,ou=management,dc=fabrikam,dc=com") If objUser.AccountDisabled = FALSE Then WScript.Echo "The account is enabled." Else WScript.Echo "The account is disabled." End If | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |