mlptechsupport
asked on
how do i use dsmove with piped results
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=or g | dsmove -newparent ou="inactive computers",ou=mlp,ou="comp uter accounts",dc=aaa,dc=bbb,dc =ccc,dc=or g -u domain\userid -p Mypassw0rd
The error returned is:
dsmove failed:`CN=sporaticcompute rnames,OU= MLP,OU=com puter accounts,DC=aaa,DC=bbb,DC= ccc,
DC=org' is an unknown parameter.
type dsmove /? for help.
The command is:
dsquery computer -inactive 8 -limit 1000 ou=mlp,ou="computer accounts",dc=aaa,dc=bbb,dc
The error returned is:
dsmove failed:`CN=sporaticcompute
DC=org' is an unknown parameter.
type dsmove /? for help.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It worked beautiffully! Thank you!
I did however get an Out of Memory Error and explorer closed. The script finished and move the objects, but I had to manually run an explorer task.
I did however get an Out of Memory Error and explorer closed. The script finished and move the objects, but I had to manually run an explorer task.
It should be like:
Open in new window