change Ldap Attribute with Vbscript from many users
Posted on 2011-02-17
I need to delete an attribute from any Users in the AD of our company. I found this helpful script:
"Const ADS_PROPERTY_CLEAR = 1
Set objUser = GetObject _
("LDAP://cn=ken myer, ou=finance, dc=fabrikam, dc=com")
objUser.PutEx ADS_PROPERTY_CLEAR, "telephoneNumber", 0
Is there a possibility to say the script, change the attribute of ALL users in the specified OU?
Thanks for any help.