ixion Posted September 28, 2005 Share Posted September 28, 2005 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...?? Link to comment Share on other sites More sharing options...
fizban2 Posted September 28, 2005 Share Posted September 28, 2005 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? Link to comment Share on other sites More sharing options...
ixion Posted September 30, 2005 Author Share Posted September 30, 2005 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 Link to comment Share on other sites More sharing options...
fizban2 Posted October 3, 2005 Share Posted October 3, 2005 if you just run the query (dsquery computer -stalepwd xx) does it return all the computers listed there? Link to comment Share on other sites More sharing options...
ixion Posted October 4, 2005 Author Share Posted October 4, 2005 Yes Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now