Mike, I'm quite easily able to move an object using Move-ADObject and to a targetpath with a & without an error. This is using my DC running PS v2.0
If I attempt to use "&" I get the error you have stated. None of the probably helps you but I say it because you should be able to run this without attempting any escaping. Cheers Paul On Tue, Oct 7, 2014 at 10:33 PM, Murray, Mike <[email protected]> wrote: > I just about finished a script that disables and moves computers in AD > based on a text file input. However, whoever named our Disabled OU did me > no favors. It’s called “Disabled PC & User”. If I use the PS command > below, it errors with “The ampersand (&) character is not allowed. The & > operator is reserved for future use…”. I’ve tried escaping the “&” with > quotes, double quotes, etc., still no luck. Can someone help? > > > > Move-ADObject $Computer -targetpath “ou=Disabled PC & > User,dc=csuchico,dc=edu” > > > > > > Best Regards, > > > > Mike Murray > > Desktop Management Coordinator - IT Support Services > > California State University, Chico > > 530.898.4357 > [email protected] > > > >

