Install the Hyper-V Agent Host service in silent mode

To install the Host 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\"] HOST=managementServiceAddress [PORT=portNumber] [INSTALLDIR=\"installPath\"]"

Where installKitName is the name of the Hyper-V Agent Host service installation kit: Hyper-V_Agent_Host-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).

HOST=managementServiceAddress

Specifies the host name or IP address of the Hyper-V Agent Management service that assigns work to the Host service.

Example: HOST=192.0.2.234

Specifying the host name is recommended. This will allow DNS to handle IP address changes.

PORT=portNumber

Optional. Specifies the port number for communicating with the Hyper-V Agent Management service.

Example:  UIREG_PORT=5444

If you do not specify a port number, port 5444 is used. 

INSTALLDIR=\"installFolder

Optional. Specifies the installation folder for the Host service, if you do not want to install the Host service in the default location. The installation folder must be enclosed in double quotation marks if there are spaces in the name or path.

Example: INSTALLDIR=\"c:\Program Files\Host Service\"

If you do not specify an installation folder, the Host service is installed in the default location.

 

For example, to install the Host service in silent mode, you could run the following command:

Hyper-V_Agent_Host-x-xx-xxxx.exe /S /L1036 /V"/qn /L*v \"C:\logs\1.log\" HOST=192.0.2.234 PORT=5444"