VMware Cloud Community
rgcordon
Contributor
Contributor

Script to add DSN in order to autodeploy vCenter

Does someone know a script or command (from powershell, command line, ..) to add a System DSN in order to autodeploy vCenter?

0 Kudos
3 Replies
crawfordm
Expert
Expert

Where are you trying to add a system DSN to?  Are you using host profiles with AutoDeploy?

------------------------------------------------------------------ If you found this answer useful please consider the use of the Helpful or Correct buttons to award points. Thanks, Marc Crawford CCNA, MCSE, MCTS, A+, Net+, Sec +, VCA-WM, VCA-DCV, VCA-Cloud, VCA-NV, VCP-NV, VCP-DCV, VCP, VCAP5-DCA http://gplus.to/marccrawford http://blog.marccrawford.com @uber_tech_geek
0 Kudos
DSeaman
Enthusiast
Enthusiast

I have a full PowerShell script that will help with your vCenter install and creates a system DSN for SQL. http://vexpert.me/Derek55 Check out Part 8, which has my Toolkit script. You can easily parse through the script and see the PS commands to create a DSN.

Derek Seaman
0 Kudos
rgcordon
Contributor
Contributor

Thank you, DSeaman, but i need save in the DSN the username and password to login into database. I don't know if it is posible, but it's necessary because the vcenter service doesn't start until you set the user and pass into DSN.

0 Kudos