Require a User to Logon on Using a Smartcard Script
Hello All,
I am trying to run a script on multiple users, but the script example given
by Microsoft is only good for an individual user account.
HEre is the script example:
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
What I am trying to do is run this script on a define OU which will enable
smart card login for ALL of the users in that OU. This script only defines
one specific user. Any would be appreciated.
Thanks
Noah
|