/build/static/layout/Breadcrumb_cap_w.png

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?

 

Regards,

Szo850


0 Comments   [ + ] Show comments

Answers (2)

Posted by: nwhyatt 12 years ago
Senior White Belt
1

Hi Szo850,

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.

 

Posted by: SMal.tmcc 12 years ago
Red Belt
0

we normally precreate our machines in the proper ou's, I have also used dsadd then called the join_domain.vbs in some of my scripts

http://support.microsoft.com/kb/322684

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ