Not familiar with LDAP so I am having trouble trying to figure out how to do this. What I need to do is given a pc name, query AD to find out the OU that the pc belongs to. I found a script that works when I run it from the pc, but not from the server.