Advertisement

07.17.2008 at 05:48PM PDT, ID: 23575454
[x]
Attachment Details

how do i use dsmove with piped results

Asked by mlptechsupport in Microsoft Operating Systems, Windows 2003 Server, Microsoft Server

i am trying to use the dsquery command line tool to identify inactive computer accounts of 8 weeks and then dsmove them by piping the results.

 The command is:
dsquery computer -inactive 8 -limit 1000 ou=mlp,ou="computer accounts",dc=aaa,dc=bbb,dc=ccc,dc=org   | dsmove -newparent ou="inactive computers",ou=mlp,ou="computer accounts",dc=aaa,dc=bbb,dc=ccc,dc=org -u domain\userid -p Mypassw0rd

The error returned is:
dsmove failed:`CN=sporaticcomputernames,OU=MLP,OU=computer accounts,DC=aaa,DC=bbb,DC=ccc,
DC=org' is an unknown parameter.
type dsmove /? for help.Start Free Trial
[+][-]07.17.2008 at 08:17PM PDT, ID: 22032640

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.18.2008 at 12:50AM PDT, ID: 22033571

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Operating Systems, Windows 2003 Server, Microsoft Server
Sign Up Now!
Solution Provided By: oBdA
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628