That's odd, i can't seem to put the LDAP query part itself in the post. Anyway, it searches AD for the machine and reports back the OU the machines in. But it's no good without that part...

Changed the query structure and updated the original code.


Edited by maciep (2005-04-21 10:44 PM)