Installing agents on Windows™ through WinRS
You can install agents remotely on Windows™ systems through WinRS.
Before you begin
Before you can install agents on Windows™ systems remotely, you must first install an agent manually and designate that agent as the WinRS agent. Follow these steps:
- Install an agent on a Windows™ system via the command line. See Installing agents from the command line.
- On the HCL Launch server, as an administrator, click
- On the System Settings page, in the WinRS Agent field, select the agent that you installed on a Windows™ system.
- Click Save.
- Configure the system that hosts the WinRS agent:
- Configure the system to communicate over WinRS by running
the following commands on the command line. Each command must be on a single
line.
winrm quickconfig
If you do not have permission to run those commands, run the following commands instead:winrm set winrm/config/winrs @{MaxMemoryPerShellMB="1024"}
sc config "WinRM" start= auto
net start WinRM
winrm create winrm/config/listener?Address=*+Transport=HTTP
netsh firewall add portopening TCP 80 "Windows Remote Management"
netsh firewall add portopening TCP 5985 "Windows Remote Management"
reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 1 /f
winrm set winrm/config/winrs @{MaxMemoryPerShellMB="1024"}
- Ensure that the user that runs the agent has the permission to map network drives.
- Configure the system to communicate over WinRS by running
the following commands on the command line. Each command must be on a single
line.
Procedure
-
Configure the system on which you want to install the agent:
- On the HCL Launch server, click and then click Install New Agent.
- In the Install New Agent window, select WinRS
-
Specify the host name or IP address, user name, and password for the agent
system.
To specify multiple entries, type each one on a separate line. Agent names are the same as the host names or IP addresses that you enter.
-
Select an agent installation property sheet from the Agent Installation
Properties list, or use New to create a property
sheet.
Agent installation property sheets are templates that can be saved and used to install agents. You can create any number of agent installation property sheets. The agent installation properties are listed in the following table:
Table 1. Remote agent installation properties Field Description Name Name of the agent installation property sheet. This value is required. Description Property sheet description. Agent Dir Directory on the target where the agent is installed. This value is required. Java Home Path Path to Java™ on the target. Typically, you enter the value of the JAVA_HOME system variable of the agent system. Do not use the JAVA_HOME variable itself, or any other variable, in this field; you must specify the complete literal path. For example, on a Microsoft™ Windows™ system, the Java™ home path might be C:\Program Files\Java\jre. On a Linux™ system, the Java™ home path might be /usr/lib/jvm/default-java. This value is required. Temp Dir Path Path to the directory that is used during installation for temporary files. This value is required. Server Host Host name or IP address of the HCL Launch server or agent relay to which the agent connects. This value is required. Server Port The port that is used by the HCL Launch server or agent relay to connect to the agent. This value is required. Proxy Host Host name or IP address of the agent relay, if used. Proxy Port HTTP proxy port of the agent relay, if used. The default value is 20080
.Auto Start If you want to install the agent as a service, select Auto Start to run the agent automatically when Windows™ starts. Windows™ only. Service Name If the agent is installed as a service, enter a name for the agent service. Windows™ only. Service User If the agent is installed as a service, enter a user name that has appropriate permission to run a service. Windows™ only. Service Password If the agent is installed as a service, enter the password that is associated with the service user. Windows™ only. - Optional:
Check Assign Team to assign the agent to a team.
- Click Save.
Results
Upgraded or installed agents are migrated to compact mode. Note that agents are updated to compact only if the agent is installed/upgraded on a platform that supports compact agents.