Install Windows Agent through the Command Line
For single host installations, install the Windows agent using the command line. Instead of specifying configuration parameters for the agent installation in the config.json file, you specify them directly in the command line.
Download the Windows agent MSI package using the instructions in Download Windows Agent Installers.
Open a PowerShell terminal as administrator.
Navigate to the folder containing the MSI package file on your host.
Run the installer using the following command in the PowerShell command line:
C:\Users\Administrator> msiexec.exe /i LWDataCollector.msi ACCESSTOKEN=Your_Access_Token SERVERURL=Your_API_Endpoint
Where:
Your_Access_Token
is the character string that identifies the specific access token to use with the agent. Obtain the access token using the instructions in Obtain an Access Token for the Windows Agent.Your_API_Endpoint
is the agent server URL. The default endpoint that the agent communicates with is https://api.lacework.net and the default region is US.note
Please note that
serverurl
is optional if your Lacework tenant is deployed in the US, but mandatory for other tenants.- https://api.lacework.net - US
- https://api.fra.lacework.net - European Union (EU)
- https://auprodn1.agent.lacework.net - Australia and New Zealand (ANZ)
By default, the agent is automatically upgraded when a new version is available. To disable automatic upgrade, use the
AUTOUPGRADE=disabled
option. For example:C:\Users\Administrator> msiexec.exe /i LWDataCollector.msi ACCESSTOKEN=Your_Access_Token SERVERURL=Your_API_Endpoint AUTOUPGRADE=disabled
note
For improved security and to benefit from new and improved features, Lacework recommends that you do not disable automatic upgrade of the agent.
An installation wizard appears. Complete the installation using the installation wizard.
A config.json file that contains the options you specified in the command line is created in the
C:\ProgramData\Lacework\
directory. You can modify this file to change the settings for the agent. If you modify the file, you must restart the agent for the changes to take effect. For more information, see Restart Windows Agent.