Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to clear Published Certificates in AD for all users using VB

Status
Not open for further replies.

AJZnSD

IS-IT--Management
Nov 19, 2003
21
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top