Configures the MyerKen user account so that the user must use a smartcard in order to logon to Active Directory.
Const ADS_UF_SMARTCARD_REQUIRED = &h40000Set 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 ThenobjUser.Put "userAccountControl", intUAC XOR ADS_UF_SMARTCARD_REQUIREDobjUser.SetInfoEnd If
This is a VB Script, this can be used by saving the file in .vbs file