Hello All,
We need to clear all our published certificates from AD. I was able to figure out how to do this per users/CN (script below) and I'm wondering if it is possible to do this at the OU level?
Any help would be greatly appreciated. Thanks in advance!
AJZ
Const ADS_PROPERTY_CLEAR = 1
Set objUser = GetObject _
("LDAP://cn=MyerKen,ou=Management,dc=NA,dc=fabrikam,dc=com")
objUser.PutEx ADS_PROPERTY_CLEAR, "userCertificate", 0
objUser.SetInfo
We need to clear all our published certificates from AD. I was able to figure out how to do this per users/CN (script below) and I'm wondering if it is possible to do this at the OU level?
Any help would be greatly appreciated. Thanks in advance!
AJZ
Const ADS_PROPERTY_CLEAR = 1
Set objUser = GetObject _
("LDAP://cn=MyerKen,ou=Management,dc=NA,dc=fabrikam,dc=com")
objUser.PutEx ADS_PROPERTY_CLEAR, "userCertificate", 0
objUser.SetInfo