How to move a computer to a new OU as a step in SCCM Task Sequence?
Requirements:
- Powershell instead of VBS
- No "File" on the sccm client system
As this is a Task Sequence step, the command will be executed locally on the SCCM Client so using the Active-Directory module is not an option unless the module is installed on every system that could be affected by this task.
Command-line execution defaults to CMD.exe, forcing to deal with painful string escape steps.