Create machine account in a specific OU when joining AD (KBOX2000)
I would like to accomplish this by duplicating and editing the default join_domain.vbs. The OU in question is supposed to be static and doesn't have to be a variable that needs to be inputted.
I have tried to add the line below but I suspect that I'm placing it in the wrong place.
strOU = "OU=xx,OU=xx,OU=xx,DC=ourdomain,DC=net"
Where xx is existing OU's of course.
Where do I go wrong?
Community Chosen Answer
The way ours was setup by a KACE Tech was to call the "join_domain.vbs" with a batch file.
So, leaving the join_domain.vbs script as it comes with KACE then creating a batch file with the following command:
Join_Domain.vbs <domain> <DomainUser> <password> <OU=testOU; dc=domain; dc=com>
You will need " around the OU Path.
Save this batch file in the same folder as the VBS, zip it up, create a new Application Post Install Task and tell the K2000 to run the batch file.