You are on page 1of 4

Change to modify OU Move Scripts

To define the staging OU (must have the same structure in all domains)

Modify the ChangeOU.vbs script under SCRIPTS on the MDT DEVELOP server
Change the first line – it’s a relative path – not including the Domain information

Save the file

Second part – move the computer to the wright OU


On the MDT develop share got to applications\gpl win7librarytool

Where you find the 3 cmd files starting with MOVE_OU_

Edit each of the scripts like you can see below

"%~dp0cpau.exe" -u europe\mdt-pilot_svc -p TrustNo1 -ex "C:\minint\MoveOU.vbs" -profile –c

- Change the user name (-u xxxx)


- Change the password (-p xxx)

Optional: Further you can think about encrypt this information into a file as you can see below

- To create the job file


cpau –u [domain\user] –p [password] – ex "C:\minint\MoveOU.vbs" –profile –c –enc –file
[jobfilepath & name]
cpau -u joehome\joe -p logon -ex "perl cleanup.pl" -enc -file cleanup.job

- To execute this jobfile use the following command


cpau –dec –file [filepath&name of jobfile] –c -profile
cpau -dec -file cleanup.job –lwp
- -> change the content of the MOVE_OU_ cmd file like this
"%~dp0cpau.exe" -dec -file "%~dp0cleanup.job” -c –profile
cleanup.job = your job file name

You might also like