# Installing Collector on Windows

The following sections explain the Collector installation and deployment methods in detail.

See the [](https://docs.nexthink.com/platform/configuring_nexthink/bringing-data-into-your-nexthink-instance/deploying-nexthink-in-non-vdi-environment/installing-collector "mention") documentation to learn how to decide on the installation and deployment method applicable to your infrastructure.

## Installation procedure overview <a href="#installingcollectoronwindows-prerequisites" id="installingcollectoronwindows-prerequisites"></a>

This section outlines the installation procedure and the decisions you have to take before and during the process. On a high level, the procedure includes the following steps:

{% @mermaid/diagram content="flowchart LR
n1(Meet general
prerequisites) --> n2(Obtain
Collector)
\--> n3(Select
Collector artifact)
\--> n4(Configure
Collector)
\--> n5(Install and test
Collector
on one device) --> n6(Deploy Collector
to the rest of devices)" %}

{% hint style="info" %}
VDI Client Extension is enabled automatically for all devices in your environment when using VDI Experience. Ensure you are using Collector version 25.4.1 or above.

For older Collector versions, Nexthink recommends upgrading to the most recent Collector version to ensure that the VDI Client Extension is enabled without requiring redeployment.
{% endhint %}

Proceed by reading the relevant section based on the endpoint agent you selected in the previous step.

### Collector installation overview

This section outlines the Collector installation process. To get started, take the [small-scale setup](#installing-collector-for-small-scale-setup) or [medium to large-scale setup](#installing-collector-for-medium-to-large-scale-setup) installation path based on the scale of your environment.

#### Installing Collector for a small-scale setup

Small-scale setups include, for example, proof-of-concept scenarios and unmanaged environments.

{% stepper %}
{% step %}
Understand the [general prerequisites](#installingcollectoronwindows-prerequisites-1)
{% endstep %}

{% step %}
Obtain [Collector](#obtaining-collector)
{% endstep %}

{% step %}
Configure Collector with your client information using the [Nexthink Collector Installer](#installingcollectoronwindows-prerequisites-3) or the [Windows Installer](#installingcollectoronwindows-deployingcollectorusingactivedirectorygrouppolicy)
{% endstep %}

{% step %}
Install Collector on a [single endpoint device](#installingcollectoronwindows-installingcollectoronasingledevice-1)
{% endstep %}

{% step %}
Ensure a good connection to your Nexthink instance; if needed, troubleshoot by reconfiguring Collector
{% endstep %}

{% step %}
Manually install Collector on the rest of the endpoint devices
{% endstep %}
{% endstepper %}

#### Installing Collector for a medium to large-scale setup

Medium to large-scale setups include managed IT environments with, in many cases, thousands of endpoint devices. Select your device type from the following tabs to see the installation steps.

{% tabs %}
{% tab title="Physical endpoint device" %}

1. Understand the [general prerequisites](#installingcollectoronwindows-prerequisites-1)
2. Obtain [Collector](#obtaining-collector)
3. Configure Collector with your client information using the [Windows Installer](#installingcollectoronwindows-deployingcollectorusingactivedirectorygrouppolicy)
4. Install Collector on a [single endpoint device](#installingcollectoronwindows-installingcollectoronasingledevice-1)
5. Ensure a good connection to your Nexthink instance; if needed, troubleshoot by reconfiguring Collector
6. Deploy Collector to the rest of the endpoint devices using a [deployment method](#installingcollectoronwindows-deployingcollectorusingactivedirectorygrouppolicy-1) applicable to your infrastructure
   {% endtab %}

{% tab title="VM" %}

1. Install the appropriate [virtualization connector](#connectors) for your environment
2. If needed, disable [auto-updates for non-persistent VDI](#disable-auto-updates-for-non-persistent-vdi)
3. Deploy Collector on the VMs using a [deployment method](#installingcollectoronwindows-deployingcollectorusingactivedirectorygrouppolicy-1) applicable to your virtual infrastructure
4. If you are deploying Collector within a Windows reference image, follow the steps in [the relevant section here](#installingcollectoronwindows-deployingcollectorwithinawindowsreferenceimage)
   {% endtab %}
   {% endtabs %}

## Before you begin <a href="#installingcollectoronwindows-prerequisites" id="installingcollectoronwindows-prerequisites"></a>

Before you begin the installation procedure, ensure you have the following things:

* URL of your Nexthink instance, including `data` in the path:\
  `<instance>.data.<region>.nexthink.cloud` \
  For more information about the URL, see the [connectivity-requirements](https://docs.nexthink.com/platform/configuring_nexthink/before-you-begin/technical-requirements/connectivity-requirements "mention").
* One or more Windows devices on which to install Collector.
* Administrator credentials in your Nexthink instance.
* The Collector installation package; see the obtaining Collector section.
* The customer key in the `Customer Key.txt` file, which you receive in your welcome email from Nexthink.
* The root certificate associated with your Nexthink instance.
* **Optional**: A third-party deployment tool or Unified Endpoint Manager (UEM), such as Microsoft Intune.

{% hint style="warning" %}
Ensure that no version of Nexthink Collector is running on the Windows instance. When applicable, uninstall the existing Collector version.
{% endhint %}

## Obtaining Collector

Download the Collector installer ZIP file directly from the product on the [Collector management](https://docs.nexthink.com/platform/user-guide/administration/system-configuration/collector-management) dashboard under **Administration > Collector management > Downloads**.

## Selecting the Collector artifact <a href="#installingcollectoronwindows-prerequisites" id="installingcollectoronwindows-prerequisites"></a>

Select the Collector installation artifact that applies to your deployment tools.

* For **Microsoft Configuration Manager (SCCM/MECM/ConfigMgr)** → [Nexthink Collector Installer](#installingcollectoronwindows-prerequisites-4)
* For **Active Directory Group Policy (GPO)** → [Windows installer](#installingcollectoronwindows-deployingcollectorusingactivedirectorygrouppolicy)
* For **Unified Endpoint Management (Microsoft Intune)** → Either [Nexthink Collector Installer](#installingcollectoronwindows-prerequisites-4) or the [Windows installer](#installingcollectoronwindows-deployingcollectorusingactivedirectorygrouppolicy)

{% hint style="warning" %}
If your client devices are running on ARM64 CPUs you must always use the [Windows Installer (MSI)](https://docs.nexthink.com/platform/configuring_nexthink/bringing-data-into-your-nexthink-instance/deploying-nexthink-in-non-vdi-environment/installing-collector/installing-collector-on-windows#installingcollectoronwindows-deployingcollectorusingactivedirectorygrouppolicy).

The Windows installer supports x64 CPU architectures only.
{% endhint %}

Continue with configuring Collector with the selected artifact.

## Configuring Collector for endpoint devices <a href="#installingcollectoronwindows-prerequisites" id="installingcollectoronwindows-prerequisites"></a>

Configure Collector with your customer-specific data and settings to ensure connection to your Nexthink instance.

{% hint style="info" %}
Create multiple Collector profiles with different configurations for different device groups.
{% endhint %}

### Configuring Collector with the **Nexthink Collector Installer** <a href="#installingcollectoronwindows-prerequisites" id="installingcollectoronwindows-prerequisites"></a>

#### Prerequisites

* [General prerequisites](#installingcollectoronwindows-prerequisites-1) apply
* The Nexthink Collector Installer, found in the following folder in the ZIP file:
  * `Installer\Collector\Nexthink_Collector_Installer_Silent.exe`: It generates silent Collector installers. When deploying the Collector on a device, a silent installer renders the installation procedure unnoticeable to the end-user of the device.
  * `Installer\Collector\Nexthink_Collector_Installer.exe`: It generates installers that open a command-line window.

#### Configuring the installer <a href="#installingcollectoronwindows-deployingcollectorusingtheinstaller" id="installingcollectoronwindows-deployingcollectorusingtheinstaller"></a>

The Nexthink Collector installer is a tool that helps you deploy Collector by producing a standalone executable file.

To generate the executable, use the graphical interface of the installer to set the installing options of Collector:

{% stepper %}
{% step %}
Double-click the appropriate Nexthink Collector installer executable file for generating either:

* A silent installer:\
  `Nexthink_Collector_Installer_Silent.exe`
* An installer that opens a command-line window:\
  `Nexthink_Collector_Installer.exe`
  {% endstep %}

{% step %}
Specify the configuration settings of the Nexthink instance that will receive the data under **Nexthink Appliance settings**:

| Address       | Use the [URL of your Nexthink instance](#installingcollectoronwindows-prerequisites-1), sometimes referred to as the destination URL. |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| Data over TCP | Select the option to send data over a TCP channel.                                                                                    |
| Ports (TCP)   | 443                                                                                                                                   |
| Ports (UDP)   | This feature must not be selected when using the Nexthink cloud platform.                                                             |
| DNS           | Tick the option **Prefer IPv6** if you want the Collector to favor the use of IPv6 over IPv4 to communicate with the instance.        |
| {% endstep %} |                                                                                                                                       |

{% step %}
Set the **General settings**. Optionally tick the box for any additional setting. In particular:

1. Installation options that are not shown in the dialog box take their default value. Check **Install configuration tool** to modify them later with the [Collector configuration tool](https://docs.nexthink.com/platform/configuring_nexthink/bringing-data-into-your-nexthink-instance/deploying-nexthink-in-non-vdi-environment/installing-collector/windows-collector-references/collector-configuration-tool-for-windows). In the case of an update, the values of the non-visible settings are preserved from the previous installation.
2. Check the option **Web and Cloud Data** if you have purchased the Web and Cloud product. Furthermore, click the button **Settings** to the right of this option to [open a dialog box where you can list the domains](https://docs.nexthink.com/platform/configuring_nexthink/bringing-data-into-your-nexthink-instance/deploying-nexthink-in-non-vdi-environment/installing-collector/windows-collector-references/reporting-the-url-of-http-web-requests-classic) for which you want to store the full URL paths of web requests. That is, for every web request that falls under one of the specified domains, Collector reports the full URL path and not just the domain.
3. Check the option **Use the assignment service** if you have activated the rule-based assignment of Collectors.
4. Select the activation of the **Engage** features depending on the target operating system:
   * **Enable except on servers**: Collector launches campaigns only on devices that do not run a server operating system.
   * **Enable on all devices**: Collector launches campaigns on devices with any type of operating system.
   * **Disable**: Collector ignores campaigns.
5. Select the **Script execution policy** for remote actions that Collector will run on the device:
   * **Signed by a trusted publisher or by Nexthink** (default): Collector runs on the device, only those remote actions with a PowerShell script that is signed either by Nexthink or by a company whose certificate is listed in the Trusted Publishers certificate store.
   * **Signed by a trusted publisher**: Collector runs on the device, only those remote actions with a PowerShell script that is signed by a company whose certificate is listed in the Trusted Publishers certificate store.
   * **Disabled**: Collector runs no remote action on the device.
   * **Unrestricted**: Collector runs any remote action on the device, regardless of the digital signature of its script.
6. **Optional**: Type in an integer number (0—2147483647) as **Collector tag** to identify the group of Collectors generated with the installer. The Collector tag is useful for defining the entities to build up hierarchies.
7. **Optional**: For more flexibility in the identification of Collectors, type in a label (maximum 2048 characters) as **Collector string tag** to identify the group of Collectors generated with the installer. The Collector string tag is useful for defining the entities to build up hierarchies.
8. Choose the **Customer Key** file that protects the connection to the Nexthink instance.
9. Specify a couple of directories:

| Output directory         | Select **Browse** to select the folder in which the executable files of both Collector install and uninstall will be created. |
| ------------------------ | ----------------------------------------------------------------------------------------------------------------------------- |
| Optional: Logs directory | Type in the network place where Collector deployed with this method must save the installation logs.                          |
| {% endstep %}            |                                                                                                                               |

{% step %}
Optionally provide the [custom proxy settings of Collector](https://docs.nexthink.com/platform/configuring_nexthink/bringing-data-into-your-nexthink-instance/deploying-nexthink-in-non-vdi-environment/installing-collector/windows-collector-references/windows-collector-proxy-support) under the **Proxy configuration** section:

1. Select **Automatic proxy** to provide a PAC file for the automatic configuration of the proxy settings.

| PAC address | URL of the PAC file |
| ----------- | ------------------- |

2. Select **Manual proxy** to manually provide the proxy settings.

| Proxy address | FQDN of the proxy                           |
| ------------- | ------------------------------------------- |
| Proxy port    | Port number to which the proxy is listening |
| {% endstep %} |                                             |

{% step %}
Click **Create** to trigger the generation of three files:

* Executable file to install the Collector:\
  `NEXThink_Collector<Nexthink_Experience_FQDN>.exe`
* Executable file to uninstall the Collector:\
  `NEXThink_Collector_Uninstaller<Nexthink_Experience_FQDN>.exe`
* Text file with the list of the settings used to create the executable installer:\
  `NEXThink_Collector<Nexthink_Experience_FQDN>.exe.txt`
  {% endstep %}

{% step %}
Select **OK** to close the dialog box.
{% endstep %}
{% endstepper %}

#### Installer exit codes <a href="#installingcollectoronwindows-nexthinkcollectorinstallererrorcodes" id="installingcollectoronwindows-nexthinkcollectorinstallererrorcodes"></a>

The installer executable returns one of the following values:

<table><thead><tr><th width="144.75">Exit code</th><th>Description</th></tr></thead><tbody><tr><td>0</td><td>Success; reboot is <strong>not</strong> required</td></tr><tr><td>-1</td><td>Success; reboot is <strong>required</strong></td></tr><tr><td>3</td><td>Failure; the Collector installation started but <code>msiexec</code> failed</td></tr><tr><td>other</td><td>Failure; the actual value corresponds to a <a href="https://docs.microsoft.com/en-us/windows/win32/msi/error-codes">Windows internal error code</a></td></tr></tbody></table>

The uninstaller executable returns one of the following values:

<table><thead><tr><th width="144">Exit code</th><th>Description</th></tr></thead><tbody><tr><td>0</td><td>Success; reboot is <strong>not</strong> required</td></tr><tr><td>-1</td><td>Success; reboot is <strong>required</strong></td></tr><tr><td>1</td><td>Success; Collector was not found and nothing was uninstalled</td></tr><tr><td>3</td><td>Failure; Collector uninstallation started but <code>msiexec</code> failed</td></tr><tr><td>other</td><td>Failure; the actual value corresponds to a <a href="https://docs.microsoft.com/en-us/windows/win32/msi/error-codes">Windows internal error code</a></td></tr></tbody></table>

### Configuring Collector with Windows Installer <a href="#installingcollectoronwindows-deployingcollectorusingactivedirectorygrouppolicy" id="installingcollectoronwindows-deployingcollectorusingactivedirectorygrouppolicy"></a>

#### Prerequisites

* [General prerequisites](#installingcollectoronwindows-prerequisites-1) apply
* An MSI editor, such as Orca
* The Collector MSI installer, found in the following folders in the ZIP file, depending on your CPU:
  * `arm64\signed\NEXThink_Collector.msi`
  * `x64\signed\NEXThink_Collector.msi`

#### Creating MST file <a href="#installingcollectoronwindows-installingcollectoronasingledevice" id="installingcollectoronwindows-installingcollectoronasingledevice"></a>

Create an MST which you will use alongside an MSI file to customize the installation process.

Nexthink Collector allows for customization in terms of security or enabling additional features. Find a complete list of parameters on this page: [Collector MSI parameters reference table.](https://docs.nexthink.com/platform/configuring_nexthink/bringing-data-into-your-nexthink-instance/deploying-nexthink-in-non-vdi-environment/installing-collector/windows-collector-references/collector-msi-parameters-reference-table)

#### Mandatory MST parameters

<table><thead><tr><th width="290.6666259765625">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><code>DRV_IP</code></td><td>Provide the FQDN of the Nexthink instance. URL structure: <code>&#x3C;customer_name>.data.eu.nexthink.cloud</code></td></tr><tr><td><code>CRD_PORT</code></td><td>Value: 443</td></tr><tr><td><code>CRD_KEY</code></td><td>Provide a customer key that has been provided to you by your Nexthink representative. Open the key file in text editor, copy the entire text and paste it to the MSI editor as the property value.</td></tr><tr><td><code>DATA_OVER_TCP</code></td><td>Enable to send end-user data over the TCP channel of Collector</td></tr></tbody></table>

#### Registering the VDI Client Extension

When installing Collector, the VDI Client Extension is enabled automatically for all devices in your environment when using VDI Experience. Ensure you are using Collector version 25.4.1 or above.

For older Collector versions, Nexthink recommends upgrading to the most recent Collector version to ensure that the VDI Client Extension is enabled automatically.

## Configuring Collector for VMs

Perform the following steps to configure Collector for VMs:

{% stepper %}
{% step %}
Configure Collector with your customer-specific data and settings using the [Windows Installer](#installingcollectoronwindows-deployingcollectorusingactivedirectorygrouppolicy)
{% endstep %}

{% step %}
See and, if necessary, add the [#vm-specific-optional-mst-parameters](#vm-specific-optional-mst-parameters "mention") to the MST file
{% endstep %}

{% step %}
Proceed by [reading the VM-specific considerations](#considerations)
{% endstep %}

{% step %}
Install [Collector on VMs](#installing-collector-on-vms)
{% endstep %}

{% step %}
Verify the [installation and VDI metrics](#verifying-the-installation-and-vdi-metrics)
{% endstep %}
{% endstepper %}

### VM-specific optional parameters

#### Windows installer (MST)

<table><thead><tr><th width="290.66668701171875">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><code>VDI_PLATFORM_TYPE</code></td><td><p>Force the detection of Citrix or Azure Virtual Desktop (AVD) / Cloud PC (CPC) if there are multiple agents in a given VM.</p><p>Values:</p><ul><li><code>Auto</code>: Auto detection using agent registry keys when available</li><li><code>AVD</code>: Forces AVD detection; prevents Windows365 detection</li><li><code>AWS</code>: Forces AWS detection</li><li><code>Citrix</code>: Forces Citrix detection</li><li><code>Horizon</code>: Forces Horizon detection</li><li><code>Windows365</code>: Forces Windows 365 / CloudPC detection</li><li><strong>Missing or unknown value</strong>: Auto detection using agent registry keys when available</li></ul></td></tr><tr><td><code>VDI_CLIENT_PLUGIN_PING_ADDRESS</code></td><td>Set the host to ping from the client to calculate ISP and WAN latency. This information is pushed from the VM to the client.<br>Populated <a href="https://docs.nexthink.com/platform/user-guide/nexthink-query-language-nql/nql-data-model#session_vdi_session">NQL data model</a> field: <code>client.network.wan_latency</code></td></tr></tbody></table>

#### Windows registry

<table><thead><tr><th width="185.25">Key name</th><th>Description</th></tr></thead><tbody><tr><td><code>Platform</code></td><td><p>Controls the VDI platform type that the Collector detects or forces to use.</p><p>Location: <code>HKEY_LOCAL_MACHINE\SOFTWARE\Nexthink\Collector\VDI</code></p><p>Possible values:</p><ul><li><code>Auto</code>: Auto detection using agent registry keys when available</li><li><code>AVD</code>: Forces AVD detection; prevents Windows365 detection</li><li><code>AWS</code>: Forces AWS detection</li><li><code>Citrix</code>: Forces Citrix detection</li><li><code>Disabled</code>: Detection disabled</li><li><code>Horizon</code>: Forces Horizon detection</li><li><code>Windows365</code>: Forces Windows 365 / CloudPC detection</li></ul><p>If not set, the default value is Disabled.</p><ul><li><strong>Missing or unknown value</strong>: Auto detection using agent registry keys when available.</li></ul></td></tr><tr><td><code>ClientPingAddress</code></td><td><p>Selects which IP address will be used by the connected plugin to calculate ISP and WAN latency.</p><p>Location: <code>HKEY_LOCAL_MACHINE\SOFTWARE\Nexthink\Collector\Sessions</code></p><p>Any string is a valid value. Examples:</p><ul><li><strong>IPv4</strong>: <code>x.y.z.a</code></li><li><strong>IPv6</strong>: <code>::1</code></li><li><strong>Domain</strong>: <code>domain.com</code></li></ul></td></tr></tbody></table>

### Considerations

#### Connectors

Install the appropriate virtualization connector for your environment to complement the data that comes from VMs and VDI clients. See the following documentation for installation instructions:

* [connector-for-aws-appstream](https://docs.nexthink.com/platform/configuring_nexthink/bringing-data-into-your-nexthink-instance/integrating-nexthink-with-third-party-tools/inbound-connectors/connector-for-aws-appstream "mention")
* [connector-for-aws-workspaces](https://docs.nexthink.com/platform/configuring_nexthink/bringing-data-into-your-nexthink-instance/integrating-nexthink-with-third-party-tools/inbound-connectors/connector-for-aws-workspaces "mention")
* [connector-for-citrix-virtual-apps-and-desktops](https://docs.nexthink.com/platform/configuring_nexthink/bringing-data-into-your-nexthink-instance/integrating-nexthink-with-third-party-tools/inbound-connectors/connector-for-citrix-virtual-apps-and-desktops "mention")
* [connector-for-citrix-daas](https://docs.nexthink.com/platform/configuring_nexthink/bringing-data-into-your-nexthink-instance/integrating-nexthink-with-third-party-tools/inbound-connectors/connector-for-citrix-daas "mention")
* [connector-for-microsoft-azure-virtual-desktop](https://docs.nexthink.com/platform/configuring_nexthink/bringing-data-into-your-nexthink-instance/integrating-nexthink-with-third-party-tools/inbound-connectors/connector-for-microsoft-azure-virtual-desktop "mention")
* [connector-for-omnissa-horizon](https://docs.nexthink.com/platform/configuring_nexthink/bringing-data-into-your-nexthink-instance/integrating-nexthink-with-third-party-tools/inbound-connectors/connector-for-omnissa-horizon "mention")

{% hint style="info" %}
Collector automatically detects your VDI vendor. However, you can optionally override this setting.
{% endhint %}

#### Preventing automatic updates for non-persistent and pooled VDIs

Non-persistent or pooled virtual desktops are typically created from golden images and reset after each session. To prevent non-persistent VDI devices from constantly switching between different Collector versions, navigate to **Administration > Collector management > Update configuration**, and select the **Do not update shared and pooled VDI devices** option.

Refer to the [#excluding-non-persistent-vdi-devices](https://docs.nexthink.com/platform/user-guide/administration/system-configuration/collector-management#excluding-non-persistent-vdi-devices "mention") documentation for more information on Collector management.

## Installing Collector on a single device <a href="#installingcollectoronwindows-installingcollectoronasingledevice" id="installingcollectoronwindows-installingcollectoronasingledevice"></a>

Install the Collector on a single device to ensure the configuration is correct and ready for deployment across the enterprise.

Use the Collector MSI package to install Collector either in interactive mode or in silent mode (also sometimes referred to as unattended mode). In the latter case, no user interaction is required once the installation process is started.

This method of installing Collector individually on every device is very tedious for large enterprises. Therefore, we only recommend it for proof of concept or testing purposes.

### Interactive installation <a href="#installingcollectoronwindows-installcollectorinaninteractivemode" id="installingcollectoronwindows-installcollectorinaninteractivemode"></a>

{% stepper %}
{% step %}
Double-click the `NEXThink_Collector.msi` file to start the installation program.
{% endstep %}

{% step %}
After reading the welcome message, select **Next**.
{% endstep %}

{% step %}
Fill out the form of installation settings:

|                              |                                                                                                                                                                                                                                                                                                                                                                                                          |
| ---------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Appliance Name or IP address | FQDN of your Nexthink instance                                                                                                                                                                                                                                                                                                                                                                           |
| Appliance TCP Port           | 443                                                                                                                                                                                                                                                                                                                                                                                                      |
| Customer Key                 | <p>Copy to this field the content of the file that holds the customer key of the Nexthink instance:</p><ol><li>Open the customer key file using Notepad.</li><li>Press <strong>Ctrl+A</strong> to select all the text.</li><li>Press <strong>Ctrl+C</strong> to copy the text.</li><li>Back in the <strong>Customer Key</strong> field, press <strong>Ctrl+V</strong> to paste the copied key.</li></ol> |
| {% endstep %}                |                                                                                                                                                                                                                                                                                                                                                                                                          |

{% step %}
Select **Next**.
{% endstep %}

{% step %}
The installer is now ready and you can click **Install** to begin the actual installation.
{% endstep %}

{% step %}
Click **Finish** to close the installation wizard once it has been completed.
{% endstep %}
{% endstepper %}

### CLI silent installation <a href="#installingcollectoronwindows-command-linesilentinstallation" id="installingcollectoronwindows-command-linesilentinstallation"></a>

To install Collector in silent mode, run `msiexec.exe` in the command-line interface (CLI). The executable program **msiexec.exe** comes pre-installed with every Microsoft Windows operating system. Custom parameters are provided directly in the CLI and they are not saved from one installation to another. For a single installation, it is preferable to use the graphical installation method instead. For larger deployments with automated tools, we recommend using Windows Installer Transformation Scripts (often referred to as MST files).

#### Mandatory parameters

| Parameter  | Description                               |
| ---------- | ----------------------------------------- |
| `DRV_IP`   | FQDN of your Nexthink instance            |
| `CRD_PORT` | 443                                       |
| `CRD_KEY`  | The customer key of the Nexthink instance |

#### Example

Unattended installation:

{% stepper %}
{% step %}
Run the following command in CLI ; change `<Your_Key>` to the actual value:

{% code overflow="wrap" %}

```sh
msiexec.exe /qn /i Nexthink_Collector.msi DRV_IP=nxdocs.eu.nexthink.cloud CRD_PORT=443 CRD_KEY=<Your_Key> REBOOT=ReallySuppress
```

{% endcode %}
{% endstep %}

{% step %}
Wait for the installation process to complete.
{% endstep %}
{% endstepper %}

The MSI now installs by default on any kind of Windows device, be it a laptop, a desktop, or a server.

For a comprehensive list of available options for Nexthink Collector, see the [Collector MSI Parameters reference](https://docs.nexthink.com/platform/configuring_nexthink/bringing-data-into-your-nexthink-instance/deploying-nexthink-in-non-vdi-environment/installing-collector/windows-collector-references/collector-msi-parameters-reference-table).

See also the [Windows Installer (msiexec.exe) command-line options Reference](http://msdn.microsoft.com/en-us/library/aa367988.aspx) documentation.

## Installing Collector on VMs

{% hint style="warning" %}
For pooled and shared VDIs, perform the steps in the [Deploying Collector within a Windows reference image](#installingcollectoronwindows-deployingcollectorwithinawindowsreferenceimage) documentation.
{% endhint %}

Deploy Nexthink Collector on all VMs using the [deployment method](#installingcollectoronwindows-deployingcollectorusingactivedirectorygrouppolicy-1) applicable for your virtual infrastructure.

### Verifying the installation and VDI metrics

{% stepper %}
{% step %}
Go to the [**Investigations**](https://docs.nexthink.com/platform/user-guide/investigations) dashboard to query the new tables and verify the installation.
{% endstep %}

{% step %}
Enable permissions for the new **Desktop Virtualization** dashboard in **Administration >** [**Roles**](https://docs.nexthink.com/platform/user-guide/administration/account-management/roles).
{% endstep %}

{% step %}
Verify that session data is available in the **Desktop Virtualization** dashboards.
{% endstep %}
{% endstepper %}

## Deploying Collector <a href="#installingcollectoronwindows-deployingcollectorusingactivedirectorygrouppolicy" id="installingcollectoronwindows-deployingcollectorusingactivedirectorygrouppolicy"></a>

### Deploying Collector using Active Directory Group Policy <a href="#installingcollectoronwindows-deployingcollectorusingactivedirectorygrouppolicy" id="installingcollectoronwindows-deployingcollectorusingactivedirectorygrouppolicy"></a>

In this section, learn how to deploy Collector over large groups of devices using a Group Policy Object (GPO) for Active Directory environments. The instructions assume that you are a system administrator with a good understanding of the Windows operating system and enterprise software deployment.

#### Create a distribution point <a href="#installingcollectoronwindows-createadistributionpoint" id="installingcollectoronwindows-createadistributionpoint"></a>

{% stepper %}
{% step %}
Log in to the server as an administrator user.
{% endstep %}

{% step %}
Create a shared network folder.
{% endstep %}

{% step %}
Set permissions on this folder to allow access to the distribution package.
{% endstep %}

{% step %}
Copy the Collector MSI to the shared folder.
{% endstep %}

{% step %}
Generate transform files (MST) to control the options passed to the MSI for installation. For example, use the Microsoft Orca utility to generate the MST.
{% endstep %}

{% step %}
Copy the generated MST to the shared folder.
{% endstep %}
{% endstepper %}

Create a Group Policy Object:

{% stepper %}
{% step %}
Select **Start > All Programs**.
{% endstep %}

{% step %}
Select **Administrative Tools**.
{% endstep %}

{% step %}
Select **Active Directory Users and Computers**.
{% endstep %}

{% step %}
Right-click your domain name in the console tree, select **New** and click **Organizational Unit**.
{% endstep %}

{% step %}
In the **New Object** dialog box, type a descriptive name for the new organizational unit (OU), and then click **OK**.
{% endstep %}

{% step %}
In the right panel, select **Computers** and click on the computer you want to add to your organizational unit.
{% endstep %}

{% step %}
Drag and drop these computers in the name of the organizational unit created. In the right panel, select **Nexthink\_Collector\_Deploy**, you will see all the computers tied to your organizational unit.
{% endstep %}

{% step %}
Select the **Start** button, go to **All Programs**.
{% endstep %}

{% step %}
Select **Administrative Tools**.
{% endstep %}

{% step %}
Select **Group Policy Management**.
{% endstep %}

{% step %}
Right-click your domain name in the console tree and select **Create a GPO in this domain**, and **Link it here...**
{% endstep %}

{% step %}
In the **New GPO** dialog box, type a descriptive name for the new policy, and then click **OK**.
{% endstep %}
{% endstepper %}

#### Assign an MSI package <a href="#installingcollectoronwindows-assignanmsipackage" id="installingcollectoronwindows-assignanmsipackage"></a>

{% stepper %}
{% step %}
Select **Start > All Programs**.
{% endstep %}

{% step %}
Select **Administrative Tools**.
{% endstep %}

{% step %}
Select **Group Policy Management**.
{% endstep %}

{% step %}
Right-click your GPO name and select **Edit...**
{% endstep %}

{% step %}
On this **Group Management Editor**, expand **Computer Policies, Software Settings and Software Installation**, select **New** and then click **Package...**
{% endstep %}

{% step %}
In the **Open** dialog box, browse to the distribution point you created for Nexthink Collector during the distribution point.
{% endstep %}

{% step %}
Select the MSI file containing the Collector installer you want to deploy, and then click **Open**.
{% endstep %}

{% step %}
In the **Deploy Software** dialog box, select **Advanced**, and then click **OK**.
{% endstep %}

{% step %}
In the **Properties** dialog box for the package you created.

1. Click the **Deployment** tab, and then select **Uninstall** this application when it falls out of the scope of management.
2. Click **Advanced** on the **Deployment** tab, choose **Ignore language when deploying this package**, uncheck the option **Make this 32-bit X86 application available to Win64 machines**, and then click **OK**.
3. On the **Modifications** tab, specify any modification transforms you want to apply when the package is installed by clicking **Add** and then opening each transform from its network location.
4. On the **Security** tab, verify the names of the computers to which you are assigning software.
5. Click **OK** to close the Properties dialog box.
   {% endstep %}

{% step %}
In the **Group Policy** dialog box, expand **Computer Configuration, Administrative Templates, and Windows Components**.

1. In the **Windows Components** folder, select **Windows Installer**.
2. Select **Always install with elevated privileges**.
3. Select **Properties**.
4. In the **Always install with elevated privileges Properties** dialog box, select the **Setting** tab, select **Enabled**.
5. Select **OK**.
   {% endstep %}

{% step %}
In the **Windows Installer** panel of the **Group Policy** dialog box, right-click **Logging**, and then select **Properties**.

1. In the **Logging Properties** dialog box, on the **Setting** tab, select **Enabled**.
2. Then, in the **Logging** text box, type **iweaprcv**.
3. Click **OK** to close the **Logging Properties** dialog box.
   {% endstep %}

{% step %}
In the **Group Policy** dialog box, click **File**, and then click **Exit**.
{% endstep %}
{% endstepper %}

{% hint style="info" %}
The GPO must be propagated to the Active Directory Global Catalog and then to the individual computers. Therefore, allow 5-10 minutes before restarting the computers to which you are assigning Collector, or plan to restart the client computers twice before the system policies are synchronized.
{% endhint %}

#### Test your results <a href="#installingcollectoronwindows-testyourresults" id="installingcollectoronwindows-testyourresults"></a>

{% stepper %}
{% step %}
Go to a target PC that is a member of the OU you tied the policy to.
{% endstep %}

{% step %}
Select **Start > Run**, and run the following command:

```shellscript
gpupdate /force
```

{% endstep %}

{% step %}
When the logoff or restart message appears, press **Y**, then **Enter**.
{% endstep %}

{% step %}
During restart, the system displays the **Installing Nexthink Collector...** message for about a minute, depending on the speed of your network and PC.
{% endstep %}

{% step %}
Select **Start > Run**, and run the following command to show the event viewer message:

```shellscript
eventvwr.msc
```

{% endstep %}

{% step %}
In the left pane, select **Application**. Certain source events are shown as logged by MsiInstaller as a Success Audit event.
{% endstep %}

{% step %}
In case of errors, go to `C:Windows/Temp/Msi.log` and see the error log generated.
{% endstep %}
{% endstepper %}

To redeploy a package, for example, when doing an upgrade:

{% stepper %}
{% step %}
Select **Start > Programs**,
{% endstep %}

{% step %}
Select **Administrative Tools**.
{% endstep %}

{% step %}
Select **Group Policy Management**.
{% endstep %}

{% step %}
Right-click your domain name in the console tree and select the **Properties** context menu.
{% endstep %}

{% step %}
Go to the **Group Policy** tab.
{% endstep %}

{% step %}
Select the object you used to deploy the package and select **Edit**.
{% endstep %}

{% step %}
Expand the **Software Settings** element (per user or per machine) which contains the deployed package.
{% endstep %}

{% step %}
Expand the **Software Installation** element which contains the deployed package.
{% endstep %}

{% step %}
Right-click the package in the right pane of the **Group Policy** window.
{% endstep %}

{% step %}
Select the **All Tasks** menu.
{% endstep %}

{% step %}
Select **Redeploy application**.
{% endstep %}

{% step %}
Select **Yes** to reinstall the application wherever it is installed.
{% endstep %}

{% step %}
Close the **Group Policy Management Editor**.
{% endstep %}

{% step %}
Select **OK** and exit the Group Policy Management.
{% endstep %}
{% endstepper %}

{% hint style="info" %}
The GPO must be propagated to the Active Directory Global Catalog and then to individual computers. For this reason, allow 5-10 minutes before restarting the computers to which you are assigning Collector, or plan to restart the client computers twice before the system policies are synchronized.
{% endhint %}

#### Optional: Remove a package <a href="#installingcollectoronwindows-optional-removeapackage" id="installingcollectoronwindows-optional-removeapackage"></a>

{% stepper %}
{% step %}
Select **Start > Programs**,
{% endstep %}

{% step %}
Select **Administrative Tools**.
{% endstep %}

{% step %}
Select **Group Policy Management**.
{% endstep %}

{% step %}
Right-click your domain name in the console tree and select the **Properties** context menu.
{% endstep %}

{% step %}
Go to the **Group Policy** tab.
{% endstep %}

{% step %}
Select the object you used to deploy the package and select **Edit**.
{% endstep %}

{% step %}
Expand the **Software Settings** element (per user or per machine) which contains the deployed package.
{% endstep %}

{% step %}
Expand the **Software Installation** element which contains the deployed package.
{% endstep %}

{% step %}
Right-click the package in the right pane of the **Group Policy** window.
{% endstep %}

{% step %}
Select the **All Tasks** menu.
{% endstep %}

{% step %}
Select from the following options:

* Immediately uninstall the software from users and computers.
* Allow users to continue to use the software but prevent new installations.
  {% endstep %}

{% step %}
Select **OK** to continue.
{% endstep %}

{% step %}
Close the **Group Policy Management Editor**.
{% endstep %}

{% step %}
Select **OK** and exit the Group Policy Management.
{% endstep %}
{% endstepper %}

{% hint style="info" %}
The GPO must be propagated to the Active Directory Global Catalog and then to individual computers. For this reason, allow 5-10 minutes before restarting the computers to which you are assigning Collector, or plan to restart the client computers twice before the system policies are synchronized.
{% endhint %}

### Deploying Collector through Microsoft Configuration Manager <a href="#installingcollectoronwindows-deployingcollectorthroughsccm" id="installingcollectoronwindows-deployingcollectorthroughsccm"></a>

{% hint style="info" %}
Microsoft Configuration Manager (ConfigMgr) was formerly known as:

* System Center Configuration Manager (SCCM)
* Microsoft Endpoint Configuration Manager (MECM)

Nevertheless, the following deployment procedure is the same for all versions of the configuration manager.
{% endhint %}

This section explains how to deploy Collector over groups of end-user devices using Microsoft Configuration Manager 2012. For other versions of the configuration manager, the procedure may be slightly different. Refer to the manual deployment of software packages in the user manual of your specific version.

The following instructions assume that you are:

* A systems administrator with a basic understanding of the Windows operating system and deploying enterprise software
* Familiar with Microsoft Configuration Manager

This procedure requires you to provide an executable file that is responsible for the actual installation of Collector on your devices. To generate this executable, use the [Nexthink Collector installer](#installingcollectoronwindows-prerequisites-4).

#### Deployment procedure <a href="#installingcollectoronwindows-deployingcollectorthroughsccm2012" id="installingcollectoronwindows-deployingcollectorthroughsccm2012"></a>

Create a collection of devices:

{% stepper %}
{% step %}
Select **Start > Microsoft System Center 2012** program group.
{% endstep %}

{% step %}
Run the Configuration Manager console.
{% endstep %}

{% step %}
In the **Assets and Compliance** workspace on the left-hand side of the main panel, right-click **Device Collections**.
{% endstep %}

{% step %}
Select **Create Device Collection**.
{% endstep %}

{% step %}
On the **General** page of the **Create Device Collection Wizard**, specify the following fields:
{% endstep %}
{% endstepper %}

| Field               | Description                                                                                                                                                                                                                      |
| ------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Name                | A unique name for the collection.                                                                                                                                                                                                |
| Comment             | <p>Optional field</p><p>Comment describing the intent of the collection.</p>                                                                                                                                                     |
| Limiting collection | <p>Optional field</p><p>Click <strong>Browse</strong> to select a collection that puts a limit on the members of the current collection or select <strong>All systems</strong> in order to not limit the current collection.</p> |

Create a boundary and add it to a boundary group:

{% stepper %}
{% step %}
In the Configuration Manager console, go to the **Administration** workspace.
{% endstep %}

{% step %}
Right-click **Boundaries** and select **Create Boundary**.
{% endstep %}

{% step %}
Define the boundary by setting additional restrictions on the target devices in which to push the software installation, for example, by IP address range.
{% endstep %}

{% step %}
Right-click **Boundary Groups** and select **Create Boundary Group**.
{% endstep %}

{% step %}
Type in a name for the group.
{% endstep %}

{% step %}
Add the previously created boundary to this group.
{% endstep %}

{% step %}
**Optional**: Verify that you added the correct number of devices to the group by looking at the value in the column **Member Count**.
{% endstep %}
{% endstepper %}

Create the application to install:

{% stepper %}
{% step %}
In the Configuration Manager console, go to the **Software Library** workspace.
{% endstep %}

{% step %}
Right-click **Applications** and select **Create Application**.
{% endstep %}

{% step %}
Choose the option **Manually specify the application information**.
{% endstep %}

{% step %}
Specify the location and name of the application; in this case, `Nexthink_Collector_Installer_Silent.exe`. The new application is added to the list of available applications.
{% endstep %}
{% endstepper %}

Now the new application should appear in the list. When you click it, there is a **Deployments** tab at the bottom of the window. Later this tab will show a list of deployments of this application to different device groups.

Distribute and deploy the application:

{% stepper %}
{% step %}
In the list of **Applications**, right-click the previously created Collector application and select **Distribute Content**. The distribution wizard opens.

1. Confirm the correct executable file of the installer, which is `Nexthink_Collector_Installer_Silent.exe`.
2. As **Content Destination**, select **Distribution Point**.
3. Specify the shared folder that holds the installer.
   {% endstep %}

{% step %}
**Optional**: Survey the distribution process from the Configuration Manager console.

1. In the main panel, navigate to **Monitoring** > **Distribution Status** > **Content Status**.
2. Click the application that you have just distributed. If you see **Success** and a green-colored graph below, you can now deploy the application.
   {% endstep %}

{% step %}
Back in the **Software Library** workspace, navigate to **Applications**.
{% endstep %}

{% step %}
Right-click the Collector application and select **Deploy**.

1. Select the collection of devices that you created earlier.
   * If you cannot see your collection in the list, switch from **User Collections** to **Device Collections**.
2. Check that the distribution point is correct and click **Next**.
3. Set **Action** to **Install** and **Purpose** to **Required** and click **Next**.
4. Set the **Schedule** to an appropriate moment to start the deployment, for example **As soon as possible**, and click **Next**.
5. Tick **Software installation** and click **Next**.
6. Accept the default options for the rest of the wizard.
   {% endstep %}

{% step %}
**Optional**: Check the status of your deployment in the **Deployments** tab at the bottom of the window.
{% endstep %}
{% endstepper %}

To verify the deployment on a client device, log in to the client device and wait for the pop-up notification about the installation of new software.

To speed up this process, manually force the software deployment evaluation cycle in the Microsoft Configuration Manager client:

{% stepper %}
{% step %}
Open the **Control Panel**.
{% endstep %}

{% step %}
Navigate to **Configuration Manager** and click the **Actions** tab.

1. Choose **Machine Policy Retrieval & Evaluation Cycle** and click **Run Now**.
2. Choose **Application Deployment Evaluation Cycle** and click **Run Now.**
   {% endstep %}
   {% endstepper %}

To debug the deployment process and see its log files, check the following:

* On the server machine, open Microsoft Configuration Manager to view log files\
  `C:\Program Files\Microsoft Configuration Manager\tools\cmtrace.exe`
* The server logs are stored in\
  `C:\Program Files\Microsoft Configuration Manager\Logs\`
* On the client machine, the logs are stored in one of these three paths:
  * `C:\Windows\CCM\`
  * `C:\Windows\ccmsetup\`
  * `C:\Windows\ccmcache\`

If your deployment is not successful, check the following troubleshooting points:

* In the Configuration Manager console, navigate to **Administration** > **Site Configuration** > **Servers and Site System Roles** and choose your server. In the table below, right-click **Distribution point** and select **Properties**. In the **Boundary Groups** tab, verify that the boundary group that you previously created is listed in the **Boundary Groups list**. If not, add it to the list.
* In the Configuration Manager console, navigate to **Software Library** > **Applications**. Right-click the Collector application and select **Properties**. Verify the following points:
  * In the **Distribution Settings** tab, ensure that the option **Distribute the content for this package to preferred distribution points** is ticked.
  * In the **Content Locations** tab, make sure that your distribution point (the path to your shared folder) is in the table. If not, add it, and click **Redistribute**.
* If the remote installation fails with error code `0x87d00324` (displayed in Software Center on the client machine), the installation itself was in fact successful and Collector should be running. It is the mechanism for detecting the installation of the application which has failed. In this case, check the detection criteria:
  1. In **Software Library**, right-click the deployed Collector application and select **Properties**.
  2. In the tab **Deployment Types**, double-click the installer script in the list **Detection Method**.
  3. Check if the detection method is configured correctly. Since you are using the Collector installer executable, the detection should be done by a registry key.

### Deploying Collector within a Windows reference image <a href="#installingcollectoronwindows-deployingcollectorwithinawindowsreferenceimage" id="installingcollectoronwindows-deployingcollectorwithinawindowsreferenceimage"></a>

When including Collector in a Windows reference image, remove the UID that Collector may have generated to identify the device.

To ensure the removal of the device UID:

{% stepper %}
{% step %}
Log in to the Windows device with Collector as a user with administrative rights.
{% endstep %}

{% step %}
Select **Start** and type `cmd` in the search bar to show the Command Prompt application.
{% endstep %}

{% step %}
Right-click the Command Prompt icon and select **Run as administrator** in the context menu.
{% endstep %}

{% step %}
Stop Collector by running the following command in the Command Prompt:

```shellscript
nxtcfg.exe /stop
```

{% endstep %}

{% step %}
Remove the UID of the device by running the following command in the Command Prompt:

```shellscript
reg delete "HKLM\SYSTEM\CurrentControlSet\Services\Nexthink Coordinator\params" /v uid
```

{% endstep %}

{% step %}
To the question **Delete the registry value uid (Yes/No)?**, type `yes`.
{% endstep %}

{% step %}
Remove the license\_UID of the device by running the following command in the Command Prompt:

```shellscript
reg delete "HKLM\SYSTEM\CurrentControlSet\Services\Nexthink Coordinator\params" /v license_uid
```

{% endstep %}

{% step %}
To the question **Delete the registry value license\_uid (Yes/No)?**, type `yes`.
{% endstep %}
{% endstepper %}

{% hint style="info" %}
The system confirms that the operation was successful or displays instead an error message if Collector has not generated the UID yet.
{% endhint %}

## Registry configuration reference <a href="#installingcollectoronwindows-interactionofcollectorwithothersoftware" id="installingcollectoronwindows-interactionofcollectorwithothersoftware"></a>

This section describes Collector features you can enable by editing Windows Registry on the client devices.

### Enabling ICA Video metrics <a href="#ica-video-metrics-framerate-and-resolution-intervals" id="ica-video-metrics-framerate-and-resolution-intervals"></a>

Fetching the ICA Video metrics from the WMI API can impact system resources, such CPU consumption. Therefore, this feature is disabled by default.

To enable the feature and determine the intervals at which these metrics are fetched, edit the following registry key:

<table data-header-hidden><thead><tr><th width="226.5"></th><th></th></tr></thead><tbody><tr><td><strong>Key</strong></td><td><code>HKEY_LOCAL_MACHINE\SOFTWARE\Nexthink\Collector\VDI</code></td></tr><tr><td><strong>Name</strong></td><td><code>IcaVideoMetricsInterval</code></td></tr><tr><td><strong>Enabled Value</strong></td><td><code>dword:00000003</code></td></tr><tr><td><strong>Disabled Value</strong></td><td><code>dword:00000000</code> or missing value</td></tr></tbody></table>

{% hint style="info" %}
The recommended values are 3 seconds for accurate metric retrieval and 10 seconds to minimize the impact on resources. The table above shows an example "enabled value" for the 3-second collection interval.
{% endhint %}

Enabling this feature collects metrics in the following fields:

* `session.vdi_events.framerate`
* `session.vdi_events.resolution`

## Collector interacting with other software <a href="#installingcollectoronwindows-interactionofcollectorwithothersoftware" id="installingcollectoronwindows-interactionofcollectorwithothersoftware"></a>

To get valuable information from a device, a component of Collector needs to run in a privileged mode as a kernel driver. Contrary to user applications, the programs that run in privileged mode can directly access the memory and the hardware of the device. These are typically the programs that control the peripherals on your devices, such as the mouse, the keyboard, the hard disks, or the network card. Other special programs, like antivirus software, may also need to run in privileged mode, at least partially. Errors in programs that run in privileged mode are not protected by the process isolation provided by the operating system and may result in system failure. Since all of these programs share the same memory space, the misbehavior of one can destabilize all of the others.

Collector has been carefully designed and thoroughly tested to avoid any kind of program errors. It has also been engineered following the best practices for the development of kernel drivers, behaving like a good citizen with respect to the other drivers that are loaded into the system. Still, in some very rare cases, an elusive programming error may defeat our rigorous testing process or a misbehaving third-party driver can trigger a fault in Collector. In these unfortunate situations, Collector may become unstable and possibly lead to a system failure of the device.

### CrashGuard protection <a href="#installingcollectoronwindows-crashguardprotectioncrashguard" id="installingcollectoronwindows-crashguardprotectioncrashguard"></a>

To protect against driver misbehavior, keep your Windows drivers up to date. Older versions of Windows drivers often contain bugs that can lead to instabilities. If a third-party driver consistently destabilizes Collector, the CrashGuard protection of Collector helps to prevent your device from crashing again and again.

The CrashGuard mechanism increases a counter each time a session is abruptly terminated. Abrupt termination of a session is either a system crash (bluescreen), a hard reset, or power off. If a subsequent session is terminated correctly, the counter is reset to zero. Otherwise, the counter is increased again. When the counter reaches a given number of consecutive abruptly terminated sessions, Collector cancels the loading of its drivers at system startup. Of course, the CrashGuard protection is only effective if it is really Collector or its interaction with misbehaving software that is causing the system to crash.

On the other hand, if some end-users have acquired the bad habit of shutting their devices down unsafely, they may inadvertently induce the CrashGuard protection mechanism to wrongly deactivate the loading of Collector by always ending their sessions abruptly. To prevent these users from triggering the CrashGuard protection mechanism, optionally specify a CrashGuard protection time interval that starts being measured at system startup and after which the abrupt termination of a session does not increase the CrashGuard counter. This measure is effective if misbehaving users shut down their devices only after the protection time interval has elapsed, that is, if the protection time interval is shorter than their working day. The default value for the protection time interval is four hours.

Additionally, specify a reactivation time to load back Collector that was previously deactivated by the CrashGuard protection. Take preventive measures during the period of deactivation to fix the issue that made the device crash so often. Collector is loaded back again once the reactivation time has elapsed, during the next boot of the device.

Specify the parameters that control the behavior of the CrashGuard as [arguments to the MSI of Collector](https://docs.nexthink.com/platform/configuring_nexthink/bringing-data-into-your-nexthink-instance/deploying-nexthink-in-non-vdi-environment/installing-collector/windows-collector-references/collector-msi-parameters-reference-table):

| `DRV_CRASHGUARD`   | The maximum number of consecutive abruptly terminated sessions after which Collector cancels the loading of its drivers. Default is five sessions.                                                                                       |
| ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `DRV_CGPI`         | The time interval in minutes after system startup during which the CrashGuard protection mechanism recognizes abrupt terminations as genuine crashes. Default is 240 min (4 hours).                                                      |
| `DRV_REACTIVATION` | The waiting time, expressed in hours, from the moment that the loading of Collector is deactivated because the CrashGuard counter reached its maximum specified count until the moment it is reactivated. Default is 168 hours (7 days). |

Modify the CrashGuard protection time interval with the [Collector configuration tool](https://docs.nexthink.com/platform/configuring_nexthink/bringing-data-into-your-nexthink-instance/deploying-nexthink-in-non-vdi-environment/installing-collector/windows-collector-references/collector-configuration-tool-for-windows) on active devices after installation.

If you suspect that there is a compatibility problem between any of the drivers loaded into the end-user devices of your company and Collector, contact [Nexthink Support](https://support.nexthink.com/) for more information.
