To install the Management service in silent mode, run the following command in the directory where the installation kit is located:
installKitName /S [/L<localeID>] /V"/qn /L*v [\"logFileName\"] UIREG_NETADDRESS=webUIAddress [UIREG_PORT=webUIportNumber] UIREG_USERNAME=webUIUser UIREG_PASSWORD=webUIUserPassword [COORDINATOR_PORT=portNumber] [INSTALLDIR=\"installPath\"]"
Where installKitName is the name of the Hyper-V Agent Management service installation kit: Hyper-V_Agent_Management-x-xx-xxxx.exe. x-xx-xxxx represents the Agent version number.
The following table lists and describes command parameters.
Parameter |
Description |
/L<localeID> |
Optional. Specifies the language for installation log messages. The default value (1033 - English (United States)) is the only available value. Note: Only English is supported with Hyper-V Agent 7.40. However, this version of the Agent can be installed on a non-English operating system. Support for other languages will be available in a subsequent release. |
\"logFileName” |
Optional. Specifies the path and name of the installation log file. If the logFileName includes spaces, enclose the value in double quotation marks. Example: \"C:\Logs\My Log.txt\" If you do not specify a logFileName, the installation log is saved in the Windows installer default location (usually the user’s temp directory). |
UIREG_NETADDRESS=webUIAddress |
Specifies the host name or IP address of the Portal for managing the Hyper-V Agent. Example: UIREG_NETADDRESS=192.0.2.233 Specifying the host name is recommended. This will allow DNS to handle IP address changes. |
UIREG_PORT=webUIportNumber |
Optional. Specifies the port number used to communicate with Portal. Example: UIREG_PORT=8086 If you do not specify a webUIportNumber, port 8086 is used for communicating with Portal. |
UIREG_USERNAME=webUIUser |
Specifies the name of the Portal user associated with the Hyper-V Agent. Example: UIREG_USERNAME=user@site.com |
UIREG_PASSWORD=webUIUserPassword |
Specifies the password of the specified Portal user. Example: UIREG_PASSWORD=password1234 |
COORDINATOR_PORT=portNumber |
Optional. Specifies the port used to communicate with Hyper-V Agent Host services. Example: COORDINATOR_PORT=5444 If you do not specify a port, port 5444 is used for communicating with Hyper-V Agent Host services. |
INSTALLDIR=\"installFolder" |
Optional. Specifies the installation folder for the Management service, if you do not want to install the Management service in the default location. The installation folder must be enclosed in double quotation marks if there are spaces in the path. Example: INSTALLDIR=\"c:\Program Files\Management Service\" If you do not specify an installation folder, the Management service is installed in the default location. |
For example, to install the Management service in silent mode, you could run the following command:
Hyper-V_Agent_Management-x-xx-xxxx.exe /S /L1033 /V"/qn /L*v \"C:\logs\1.log\" UIREG_NETADDRESS=192.0.2.233 UIREG_USERNAME=user@site.com UIREG_PASSWORD=password1234 UIREG_PORT=8086 INSTALLDIR=\"C:\Program Files\Management Service\""