Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Disable a User AccountContent of Disable a User Account.vbsMD5 Hash: 4CA0631C39F9FC9E91F0E916805757D5 |
||
' Description: Disables a user account.
Const ADS_UF_ACCOUNTDISABLE = 2 Set objUser = GetObject _ ("LDAP://cn=myerken,ou=management,dc=fabrikam,dc=com") intUAC = objUser.Get("userAccountControl") objUser.Put "userAccountControl", intUAC OR ADS_UF_ACCOUNTDISABLE objUser.SetInfo | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |