Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Disable the Smartcard Required Attribute for a User AccountContent of Disable the Smartcard Required Attribute for a User Account.vbsMD5 Hash: C6F65FEA0F158D278D0D3577BF9C34EA |
||
' Description: Disables the setting that requires MyerKen to use a smartcard when logging on to Active Directory.
Const ADS_UF_SMARTCARD_REQUIRED = &h40000 Set objUser = GetObject _ ("LDAP://cn=MyerKen,ou=Management,dc=NA,dc=fabrikam,dc=com") intUAC = objUser.Get("userAccountControl") If (intUAC AND ADS_UF_SMARTCARD_REQUIRED) <> 0 Then objUser.Put "userAccountControl", intUAC XOR ADS_UF_SMARTCARD_REQUIRED objUser.SetInfo End If | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |