meastaugh1 Posted February 5, 2007 Posted February 5, 2007 Hi, Can someone offer some help with modifying the above script? I need to address the issue addressed in KB817433. However, I'd rather only execute it against a certain OU and it's child OUs. My attempts so far have resulted the script in returning 0 accounts found. many thanks Mike
saundersmatt Posted February 5, 2007 Posted February 5, 2007 i would change the line oCmd.CommandText = "SELECT ADsPath FROM 'LDAP://" & sPDC & "/" & sDomain & "' WHERE objectCategory='person' and objectClass = 'user' AND adminCount = 1" to read oCmd.CommandText = "SELECT ADsPath FROM 'LDAP://" & sPDC & "/" & sDomain & "/ou=SearchOU,dc=your,dc=domain" & "' WHERE objectCategory='person' and objectClass = 'user' AND adminCount = 1" Matt
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now