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

Comments

Please log in to comment

Community Chosen Answer

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.

 

Answered 11/27/2012 by: nwhyatt
Senior White Belt

Please log in to comment

Answers

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

Answered 11/28/2012 by: SMal.tmcc
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja

Share