I am attempting to move disabled users from one ou to another using the following command and I keep getting an error.
dsquery user -disabled "ou=contractors,dc=company,dc=corp,dc=local" | dsmove -newparent "ou-disabled contractors,dc=company,dc=corp,dc=local"
dsmove failed:`CN=Smith\, John,OU=Contractors,DC=COMPANY,DC=Corp,DC=Local' is an unknown parameter.
It seems that dsmove is reading the "\" as a backslash instead of using it as an escape character. as required according to dsmove help.
Can someone explain to me how to correct this problem, or perhaps a better way of performing this task?