VMware Cloud Community
cliffcahill
Enthusiast
Enthusiast
Jump to solution

vCenter scripted install using PsExec ?

Hello,

Wondering if any of you have used PSEXEC to run a .bat file to auto install vcenter/vum?

I have a script that writes a .bat file to a set location on the VM and the runs the .bat file Via PSXEC. I have successfully installed all the minor components (viclient syslog webclient) using this method but he install fails on both VCenter (VM1) and VUM (VM2) when trying to create a new database which is located on a 3rd VM running SQL 2008R2.

The ODCB Connection is configured and is testing fine. They are connected using Microsoft authentication as opposed to SA authentication.

If I run .bat file locally from the VM the install runs though perfectly.

Attached is sample of the script that i am running at the moment.

Anyone have any idea or suggest an alternative method that might work?

Cheers

Cliff

0 Kudos
1 Solution

Accepted Solutions
cliffcahill
Enthusiast
Enthusiast
Jump to solution

I Used the Pretty Simple

Invoke-VMScript -ScriptText "C:\VCinstall.bat"  -VM testvc -ScriptType Bat -GuestUser $GU -GuestPassword $GP

And it worked perfectly.

View solution in original post

0 Kudos
1 Reply
cliffcahill
Enthusiast
Enthusiast
Jump to solution

I Used the Pretty Simple

Invoke-VMScript -ScriptText "C:\VCinstall.bat"  -VM testvc -ScriptType Bat -GuestUser $GU -GuestPassword $GP

And it worked perfectly.

0 Kudos