- Joined
- Jul 27, 2006
- Messages
- 9,484
https://communities.vmware.com/thread/332338
When I try to run this from a .ps file, this is the error I get:
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:
Still get same error
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