What I want to do is supply a pc name and query AD to find out the OU that it is in. I can get it to work fine when running from the machine itself. What I want to to is run it from the server. I want to supply a pc name, and have it give me the OU that is in and from there take some action. The problem I'm having is we have the following AD structure. "Domain Computers" and under there we have OU's by location name, such as Austin, Riverside, etc. I need a script to give me the OU that contains that PC. Such as Austin or Riverside, not Domain Computers. I have tried a couple of different scripts, and they work when run from the pc itself. But I need to run this on the server and query for a bunch of different pc names. Any suggestions on which script would work for that?