Установите агента windows на хосты с использованием сценария power shell

This topics walks you through the steps for installing the Lacework Windows agent on a host machine using the Install-LWDataCollector.ps1 PowerShell script. The script downloads the Windows agent MSI package and installs the Windows agent on a host machine.

Install on a Host Machine using the PowerShell Script​

The Install-LWDataCollector.ps1 PowerShell script installs the Lacework Windows agent and adds a local firewall rule to allow the agent to communicate with Lacework. In addition, the script optionally configures a Windows Defender exclusion for the agent.

Lacework recommends that you exclude the agent from any antivirus or Endpoint Detection and Response (EDR) applications on your host. The Install-LWDataCollector.ps1 script allows you to enable this exclusion for Microsoft Defender. For other antivirus applications, you can customize the script to exclude the agent from scanning.

Install with a Configuration File

  1. Create a config.json file on your host using a text editor.

    Do not create the config.json file in the C:\ProgramData\Lacework\ directory where the Windows agent components will be installed.

    • Your_Access_Token specifies the access token to use with the agent. Obtain the access token using the instructions in Agent Access Token.
    • Your_API_Endpoint specifies the agent server URL. For more information, see serverurl Property.
  2. By default, the agent is automatically upgraded when a new version is available. To disable automatic upgrade, see Automatic Upgrade of Windows Agent.

  3. Save the config.json file in the ASCII format and note the location of the file.

  4. Navigate to the directory containing the Install-LWDataCollector.ps1 script on your host.

    • C:\path\to\config.json specifies the file path for the config.json file.
    • Agent_MSI_Download_URL specifies the URL for downloading the Windows agent MSI package. To obtain the URL, do the following:
      1. Go to the Lacework Windows Agent Releases page. This page lists the Windows agent releases you can install.
      2. Go to the release you want to install.
      3. Copy the URL for Lacework Windows Agent MSI Package.
    • The -Defender option excludes the Windows agent from scanning with Windows Defender.
:/>  Как установить dns из командной строки в Windows 10 или 11?

Install without a Configuration File

  1. Navigate to the directory containing the Install-LWDataCollector.ps1 script on your host.

    • Your_Access_Token specifies your agent access token. For more information, see Agent Access Token.
    • Your_API_Endpoint specifies your Lacework agent server URL. For more information, see serverurl Property.
    • Agent_MSI_Download_URL specifies the URL for downloading the Windows agent MSI package. To obtain the URL, do the following:
      1. Go to the Lacework Windows Agent Releases page. This page lists the Windows agent releases you can install.
      2. Go to the release you want to install.
      3. Copy the URL for Lacework Windows Agent MSI Package.
    • The -Defender option excludes the Windows agent from scanning with Windows Defender.

Prerequisites​

  1. Download the Lacework Powershell Script (powershell.zip file) using the instructions in Download Windows Agent Installer.
  2. Unzip the powershell.zip file. The signed-scripts folder that is created contains the Install-LWDataCollector.ps1 file.