VMware Cloud Community
srinivasaddagat
Contributor
Contributor

Joining a VM deployed from template to a particular OU while joining to domain

I am in the process of automating the VM deployment using templates. However when the customization wizard runs, I want the VM to be added to a particular OU in the domain. Is there any way to provide the details in the customization wizard to have the VM join to a particular OU in the domain. All the VMs start with a particular name like "XPVD..." Is there any way if this condition can be applied somewhere to meet the requirement? Also, I cannot write any passwords in a text file as it is a security concern.

Could you please provide a workaround or solution for this?

Thanks

0 Kudos
5 Replies
AWo
Immortal
Immortal

1. You can create the computer account before joining the system to the directory in the OU you would like it to be.

2. Use "netdom"

NETDOM JOIN ]]

Read this: http://support.microsoft.com/?scid=kb%3Ben-us%3B266651&x=8&y=6

vExpert 2009/10/11 [:o]===[o:] [: ]o=o[ :] = Save forests! rent firewood! =
0 Kudos
vmroyale
Immortal
Immortal

Check this discussion as well.

Good Luck!

Brian Atkinson | vExpert | VMTN Moderator | Author of "VCP5-DCV VMware Certified Professional-Data Center Virtualization on vSphere 5.5 Study Guide: VCP-550" | @vmroyale | http://vmroyale.com
0 Kudos
Jasemccarty
Immortal
Immortal

I would agree... Create the accounts before hand, using the above method, or using DSADD.

I did a post on it here:

And Chris Skinner did a paper here:

Jase McCarty

http://www.jasemccarty.com

Co-Author of VMware ESX Essentials in the Virtual Data Center

(ISBN:1420070274) from Auerbach

Jase McCarty - @jasemccarty
0 Kudos
hstagner
VMware Employee
VMware Employee

I was about to point to Jase's post as I do agree that creating the accounts beforehand is the best route. Good work on the script Jase.

Regards,

Harley Stagner

----------------------------------------- Don't forget to mark this answer "correct" or "helpful" if you found it useful (you'll get points too). Regards, Harley Stagner VCP3/4, VCAP-DCD4/5, VCDX3/4/5 Website: http://www.harleystagner.com Twitter: hstagner
0 Kudos
Jasemccarty
Immortal
Immortal

Thanks for the kudos... I try to get around using .vbs scripts, as they can get tied up in the whole cscript/wscript issue.

Now... If VMware could add a piece to the deployment process that would allow us to have VirtualCenter add the computer account, before deployment, we'd be in good shape!

Jase McCarty

http://www.jasemccarty.com

Co-Author of VMware ESX Essentials in the Virtual Data Center

(ISBN:1420070274) from Auerbach

Jase McCarty - @jasemccarty
0 Kudos