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.
It should be like:
Open in new window