• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

Having trouble installing vCenter Server via PowerShell

Cerulean

[H]F Junkie
2FA
Joined
Jul 27, 2006
Messages
9,484
https://communities.vmware.com/thread/332338
Code:
Start-Process -wait -filepath D:\Software\VCenter-Server\VMware-vcserver.exe -argumentlist '/s /w /L1033 /v" /qr WARNING_LEVEL=0 USERNAME=\"domain\user\" COMPANYNAME=\"company_name\" LICENSEKEY=\"12345\" DB_SERVER_TYPE=Custom DB_DSN=\"VCDB\" DB_USERNAME=\"domain\user\" DB_PASSWORD=\"password\" JVM_MEMORY_OPTION=L VPX_USES_SYSTEM_ACCOUNT=0 VPX_ACCOUNT=\"domain\user\" VPX_PASSWORD=\"password\" VPX_PASSWORD_VERIFY=\"password\" INSTALLDIR=\"D:\Program Files\" VCS_GROUP_TYPE=Single VCS_HTTPS_PORT=443 VCS_HTTP_PORT=80 VCS_HEARTBEAT_PORT=902 TC_HTTP_PORT=8080 TC_HTTPS_PORT=8443 VCS_ADAM_LDAP_PORT=389 VCS_ADAM_SSL_PORT=902 QUERY_SERVICE_HTTPS_PORT=10443 QUERY_SERVICE_XDB_PORT=10109 QUERY_SERVICE_FEDERATION_PORT=10111'

When I try to run this from a .ps file, this is the error I get:
Code:
PS C:\> .\install-vCenter.ps
Program 'install-vCenter.ps' failed to run: Class not registeredAt line:1 char:1
+ .\install-vCenter.ps
+ ~~~~~~~~~~~~~~~~~~~~.
At line:1 char:1
+ .\install-vCenter.ps
+ ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (:) [], ApplicationFailedException
    + FullyQualifiedErrorId : NativeCommandFailed

I did make one modification to a parameter -filepath and removed "Software\". I have the ISO mounted on D: and that executable is at D:\vCenter-Server\VMware-vcserver.exe

The reason I am doing it this way is for learning and challenge, and because I am using Microsoft Windows Server 2012 Standard Core (for additional learning and challenge). Autorun function doesn't work because Internet Explorer isn't installed and autorun.exe launches an HTM file with lots of JavaScript involved (and even with a browser like Waterfox it just doesn't load JavaScript and function).

I also changed -argumentlist to this:
Code:
-argumentlist '\"/s /w /L1033 /v\"

Still get same error
 
OK, executed the PowerShell command from scratch starting with Start-Process and the first couple parameters -wait and -filepath. After I got that to launch the installer without problem, I added -argumentlist with the first handful of parameters to try just get that to work. With success, I proceeded to add a handful of more arguments and was successful also. Then I begun writing the rest of the items for -argumentlist until I got to INSTALLDIR=. Since that value has a space in it I Googled for how to double quote in PowerShell and found to use [char]34 in place of ". I finished the rest of the command and surrounded the wholesome value of -argument list with an apostrophe on each end. Here is my final command:

Code:
Start-Process -wait -filepath "D:\vCenter-Server\VMware-vcserver.exe" -argumentlist '/s /w /L1033 /v /qr WARNING_LEVEL=0 USERNAME=SuperCenter9000\Administrator COMPANYNAME=SuperLabs9000 LICENSEKEY=NotTellingYouHaha DB_SERVER_TYPE=Custom DB_DSN=VCDB DB_USERNAME=SuperCenter9000\Administrator DB_PASSWORD=NotTellingYouHaha JVM_MEMORY_OPTION=L VPX_USES_SYSTEM_ACCOUNT=0 VPX_ACCOUNT=SuperCenter9000\Administrator VPX_PASSWORD=NotTellingYouHaha VPX_PASSWORD_VERIFY=NotTellingYouHaha INSTALLDIR=[char]34C:\Program Files\[char]34 VCS_GROUP_TYPE=Single VCS_HTTPS_PORT=443 VCS_HTTP_PORT=80 VCS_HEARTBEAT_PORT=902 TC_HTTP_PORT=8443 VCS_ADAM_LDAP_PORT=389 VCS_ADAM_SSL_PORT=902 QUERY_SERVICE_HTTPS_PORT=10433 QUERY_SERVICE_XDB_PORT=10109 QUERY_SERVICe_FEDERATION_PORT=10111'

With this said, I have found that when attempting to install vCenter Server on Microsoft Windows Server 2012 Standard Core to receive a critical error that prevents vCenter Server from installing:

Windows Scripting Host 5.6 said:
Windows Sciripting Host Version 5.6 cannot be installed on this machine. It has a minimum system requirement of Micorosft Internet Explorer 4.0 or greater.

Setup will exit now. Please restart the Setup after installing the necessary updates to this machine.
(NOTE: The spelling mistakes "Sciripting" and "Micorosft" are legit. Furthermore, to be proper, it should also read "Setup will now exit", not "Setup will exit now"; and "Please restart the Setup ..." should be replaced with "Please restart Setup ...".)
 
Back
Top