Jump to content

Recommended Posts

Posted

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

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...