September 28, 200520 yr can anyone see what I have done wrong in the below?dsquery computer -scope onelevel "ou=standard workstations,ou=workstations,ou=01 computers,dc=orr" -stalepwd 150 -limit 0 | dsmove -newparent "ou=tombstone computer accounts,ou=05 maintenance,dc=orr"dsmove failed:`CN=HELPDESK,OU=Standard Workstations,OU=Workstations,OU=01 Computers,DC=orr' is an unknown parameter.type dsmove /? for help.If I do a dsquery -computer name helpdesk | dsmove -newparent "ou= etc etc" then it works fine...??
September 28, 200520 yr what is the full domain name? when you use the domain it should be ie "dc=something,DC=com" for something.com, you need the full domain name. how many machines are suppose to be in the ou, and are the ou's that you are querying listed correctly on the same level?
September 30, 200520 yr Author the domain name is flat... just "orr" I know this is not the problem because the command works perfectly if there is only one result. As soon as there are more than one result I run into this problemi.edsquery computer -stalepwd xx | dsmove xx (fails with unknown paramater)but when I specify a limit of one resultdsquery computer -stalepwd xx -limit 1 | dsmove xx(command works perfectly)as soon as I change the limit to more than 1 I receive the unknown paramater error again and the error is always against the second result
October 3, 200520 yr if you just run the query (dsquery computer -stalepwd xx) does it return all the computers listed there?
Create an account or sign in to comment