Cybersecurity
DevOps Cloud
IT Operations Cloud
The script uses the varset submit method and reads from a text file and looks up the user and then moves them to the target OU. The script needs to run on the DRA server or you will need to modify the script to run remotely. The script looks at a tab delim file at c:\list2.txt which is a list of the samaccountname and the target OU like below. The only modification to the script will require changing the search domain from "dc=secure,dc=local" to the desired domain.
kingAar OU=demo,DC=secure,DC=local
ciottiabr OU=demo,DC=secure,DC=local
denkoabr OU=demo,DC=secure,DC=local
Test153 OU=demo,DC=secure,DC=local