Skip to main content

Upgrade the Windows Agent

Automatic Upgrade of Windows Agent

By default, the Windows agent is automatically upgraded when a new version is available.

To disable automatic upgrade, add the following to your config.json file.

"autoupgrade": "disable"
note

For improved security and to benefit from new and improved features, Lacework recommends that you do not disable automatic upgrade of the agent.

To enable automatic upgrade again, delete the "autoupgrade": "disable" property in the config.json file or change it to:

"autoupgrade": "enable"
note

If you modify the config.json file while the agent is running, you must restart the agent for the changes to take effect. For more information, see Restart Windows Agent.

Manual Upgrade of Windows Agent

To manually upgrade the version of the Windows agent on your host machine:

  1. Uninstall the agent from your host machine.
    1. Open Add/Remove program on your host.
    2. Select LWDataCollector from the list of programs.
    3. Click Uninstall.
    4. Verify that LWDataCollector does not appear in the list of programs.
  2. Open a PowerShell terminal or the Windows Command Prompt as an administrator and do the following to ensure that the agent service and driver are not running.
    1. Check the state of the agent service by entering the command: C:\Users\Administrator> sc.exe query lwdatacollector
    2. Check the state of the agent driver by entering the command: C:\Users\Administrator> sc.exe query lwdcs
  3. Download the latest Windows agent MSI installer using the instructions at Download Windows Agent Installer
  4. Install the Windows agent using any of the installation methods at Install the Windows Agent.