Add or remove any endpoints to a domain
This set of agent procedures allows you to add or remove any endpoints to your Windows Domain.
There are two versions of each script. One prompting you for the credentials and domain name prior to executing so you can fill as needed.
The second version uses static variables you will need to modify with the correct credentials for better automation.
Is it possible to join pc to not default OU?
If you want the PC to join a specific OU, you could add the following parameter, to line 7 of the Agent Procedure
-OUPATH "OU=Tills,OU=Store Devices,OU=Domain Operations,DC=YourDomain,DC=local"
If you want to specify your own OU, you will need to create additional GetVariable lines, and then reference the variable in Line 7.
Hope this helps!