Building off an earlier demo environment script I found a better way to delay my demo batch until after vCenter starts, by levering Sysinternal’s plist.exe utility:
REM Wait for vCenter to start.
:Wait
c:progra~1pstoolspslist.exe \vCenter | find “vpxd”
IF NOT ERRORLEVEL 1 goto :Continue
IF ERRORLEVEL 1 goto :Wait
:Continue
This has proven much more reliable than waiting for a ping response from the networking stack!
2 Responses to vSphere scripting : wait for vCenter