Skip to main content
Skip table of contents

Installing Collector on Windows

You must install Collector on all the Windows devices you want to connect to the Nexthink platform. For small setups or specific cases, you may opt for installing Collector manually on each device. For medium to large setups, the installation of Collector usually requires automated deployment tools. To keep Collector up-to-date, either rely on the same deployment tools you used for the installation or the automated update powered by Nexthink.

Prerequisites

You need:

  • The fully qualified domain name (FQDN) of your Nexthink instance.

  • One or more Windows devices on which to install Collector.

  • The Nexthink Collector installer or the Collector MSI packages.

  • The customer key and root certificate associated with your Nexthink instance.

  • (optional) A third-party deployment tool.

Find the Nexthink Collector installer and the Collector MSI packages inside the Collector ZIP file available from the product downloads page of Nexthink:

  1. Open your favorite web browser.

  2. Navigate to the official downloads website.

  3. Sign in with your customer credentials.

  4. Click the entry for the latest Nexthink Infinity Release.

  5. Find the Collector section.

  6. Click to download the Collector package for Windows.

  7. Verify your download with the provided SHA-256 hash.

  8. Extract the contents of the downloaded ZIP file.

  9. Find the Nexthink Collector Installer in the Installer > Collector folder.
    This is the recommended tool for generating an executable that embeds the Collector MSIs and the custom configuration options in a single bundle to easily deploy the Collector. Two versions are provided:

    • Nexthink_Collector_Installer_Silent.exe
      to generate 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.

    • Nexthink_Collector_Installer.exe
      to generate installers that open a command-line window.

  10. Find the Collector MSI file NEXThink_Collector.msi in the folder x64 > signed.

Deploying Collector using the installer

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:

  1. 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

  2. Specify the configuration settings of the Nexthink instance that will receive the data under Nexthink Appliance settings:

    • Address
      Use the fully qualified domain name (FQDN) of your Nexthink instance, sometimes referred to as the destination URL.

    • Data over TCP
      Tick the option to send data over a TCP channel.

    • Ports (TCP)
      Port number to set to 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.

  3. 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. 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 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 to 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 (max 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. Finally, specify a couple of directories:

      • Output directory
        Click 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.

  4. Optionally provide the custom proxy settings of Collector under the Proxy configuration section:

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

      • PAC address
        Type in the URL of the PAC file.

    2. Tick Manual proxy to manually provide the proxy settings.

      • Proxy address
        Type in the FQDN of the proxy.

      • Proxy port
        Type in the port number where the proxy is listening.

  5. Click Create to trigger the generation of three files:

    NEXThink_Collector[Nexthink_Experience_FQDN].exe
    Executable file to install the Collector.

    NEXThink_Collector_Uninstaller[Nexthink_Experience_FQDN].exe
    Executable file to uninstall the Collector.

    NEXThink_Collector[Nexthink_Experience_FQDN].exe.txt
    Text file with the list of the settings used to create the executable installer.

  6. Click OK to close the dialog box.

Nexthink Collector installer error codes

The installer executable returns one of the following values:

  • 0
    Success, a reboot is not required.

  • -1
    Success, a reboot is required.

  • 3
    Failure, the Collector installation started but msiexec failed.

  • other
    Failure, the actual value corresponds to a Windows internal error code.

The uninstaller executable returns one of the following values:

  • 0
    Success, a reboot is not required.

  • -1
    Success, a reboot is required.

  • 1
    Success, Collector was not found and nothing was uninstalled.

  • 3
    Failure, the Collector uninstallation started but msiexec failed.

  • other
    Failure, the actual value corresponds to a Windows internal error code.

Deploying Collector through SCCM

In this section, learn how to deploy Collector over groups of end-user devices using Microsoft System Center Configuration Manager (SCCM). The instructions assume that you are a systems administrator with a basic understanding of the Windows operating system and deploying enterprise software and that you are familiar with Microsoft SCCM. This documentation covers the deployment of Collector with SCCM 2012. For other versions of SCCM, the procedure may be slightly different. Please refer to the section on deploying software packages in the user manual of your specific version to deploy Collector.

The deployment of Collector using SCCM 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.

Deploying Collector through SCCM 2012

Create a collection of devices:

  1. Click the Windows Start button, go to the Microsoft System Center 2012 program group, and run the Configuration Manager console.

  2. In the Assets and Compliance workspace on the left-hand side of the main panel, right-click Device Collections and select Create Device Collection.

  3. On the General page of the Create Device Collection Wizard, specify the following fields:

    • Name
      Type in a unique name for the collection.

    • (optional) Comment
      Type in a comment describing the intent of the collection.

    • (optional) Limiting collection
      Click Browse to select a collection that puts a limit on the members of the current collection or select All systems in order to not limit the current collection.

Create a boundary and add it to a boundary group:

  1. In the Configuration Manager console, go to the Administration workspace.

  2. Right-click Boundaries and select Create Boundary.

  3. Define the boundary by setting additional restrictions on the target devices in which to push the software installation (for example, by IP address range).

  4. Right-click Boundary Groups and select Create Boundary Group.

  5. Type in a name for the group.

  6. Add the previously created boundary to this group.

  7. (optional) Verify that you added the correct number of devices to the group by looking at the value in the column Member Count.

Create the application to install:

  1. In the Configuration Manager console, go to the Software Library workspace.

  2. Right-click Applications and select Create Application.

  3. Choose the option Manually specify the application information.

  4. Specify the location and name of the application (in our case, the name should be Nexthink_Collector_Installer_Silent.exe). The new application is added to the list of available applications.

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:

  1. 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 (Nexthink_Collector_Installer_Silent.exe).

    2. As Content Destination, select Distribution Point.

    3. Specify the shared folder that holds the installer.

  2. (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.

  3. Back in the Software Library workspace, navigate to Applications.

  4. 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.

  5. (optional) Check the status of your deployment in the Deployments tab at the bottom of the window.

To verify the deployment on a client device:

  1. Log in to the client device and wait for the pop-up notification about the installation of new software.

To speed up this process a little bit, you can manually force the software deployment evaluation cycle in the SCCM client:

  1. Open the Control Panel.

  2. 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.

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

  • On the server machine, open the SCCM utility 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 using Active Directory Group Policy

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 the deployment of enterprise software.

Create a distribution point

  1. Log in to the server as an administrator user.

  2. Create a shared network folder.

  3. Set permissions on this folder in order to allow access to the distribution package.

  4. Copy the Collector MSI to the shared folder.

  5. Generate transform files (MST) for controlling the options passed to the MSI for installation. For example, use the Orca utility from Microsoft to generate the MST.

  6. Copy the generated MST to the shared folder.

Create a Group Policy Object:

  1. Click on the Start button, go to All Programs, select Administrative Tools and then select Active Directory Users and Computers.

  2. Right-click your domain name in the console tree, select New and click Organizational Unit.

  3. In the New Object dialog box, type a descriptive name for the new organizational unit (OU), and then click OK.

  4. In the right panel, select Computers and click on the computer that you want to add to your organizational unit.

  5. 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.

  6. Click on the Start button, go to All Programs, select Administrative Tools and then select Group Policy Management.

  7. Right-click your domain name in the console tree and select Create a GPO in this domain, and Link it here...

  8. In the New GPO dialog box, type a descriptive name for the new policy, and then click OK.

Assign an MSI package

  1. Click on the Start button, go to All Programs, select Administrative Tools and then select Group Policy Management.

  2. Right-click your GPO name and select Edit....

  3. On this Group Management Editor, expand Computer Policies, Software Settings and Software Installation, select New and then click Package...

  4. In the Open dialog box, browse to the distribution point you created for Nexthink Collector during the distribution point.

  5. Select the MSI file containing the Collector installer you want to deploy, and then click Open.

  6. In the Deploy Software dialog box, select Advanced, and then click OK.

  7. 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 name(s) of any computer(s) to which you are assigning software.

    5. Click OK to close the Properties dialog box.

  8. 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.

      1. Select Properties.

      2. In the Always install with elevated privileges Properties dialog box, click the Setting tab, select Enabled, and then click OK.

  9. 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.

  10. In the Group Policy dialog box, click File, and then click Exit.

(info) The GPO must be propagated to the Active Directory Global Catalog and then to the individual computers. For this reason, allow 5-10 minutes before restarting the computers to which you are assigning Nexthink Collector, or plan to restart the client computers twice before the system policies are synchronized.

Test your results

  1. Go to a target PC that is a member of the OU you tied the policy to.

  2. Click Start, Run and type gpupdate /force.

  3. A logoff or a restart message will appear: type Y and Enter.

  4. When you restart, you should see the message Installing Nexthink Collector... for about a minute depending on the speed of your network and pc.

  5. Click Start, Run and type eventvwr.msc to show the event viewer message. In the left pane, select Application, you will see some source events MsiInstaller logged as a Success Audit event.

  6. If you have any errors, go to C:Windows/Temp/Msi.log and see the error log generated.

Sometimes you may need to redeploy a package (for example, when doing an upgrade). To redeploy a package:

  1. Click the Start button, go to Programs, select Administrative Tools and then select Group Policy Management.

  2. Right-click your domain name in the console tree and select the Properties context menu.

  3. Go to the Group Policy tab, select the object you used to deploy the package and click Edit.

  4. Expand the Software Settings element (per user or per machine) which contains the deployed package.

  5. Expand the Software Installation element which contains the deployed package.

  6. Right-click the package in the right pane of the Group Policy window.

  7. Select the All Tasks menu and click Redeploy application.

  8. Click the Yes button to reinstall the application wherever it is installed.

  9. Close the Group Policy Management Editor, click OK and exit the Group Policy Management.

(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.

(optional) Remove a package

  1. Click on the Start button, go to Programs, select Administrative Tools and then select Group Policy Management.

  2. Right-click your domain name in the console tree and select the Properties context menu.

  3. Go to the Group Policy tab, select the object you used to deploy the package and click Edit.

  4. Expand the Software Settings element (per-user or per-machine) which contains the deployed package.

  5. Expand the Software Installation element which contains the deployed package.

  6. Right-click the package in the right pane of the Group Policy window.

  7. Select the All Tasks menu and click Remove.

  8. 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.

  9. Click the OK button to continue.

  10. Close the Group Policy Management Editor, click OK and exit the Group Policy Management.

(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.

Installing Collector on a single device

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.

Install Collector in an interactive mode

  1. Double-click the Nexthink Collector MSI file (NEXThink_Collector.msi) to start the installation program.

  2. After reading the welcome message, click Next.

  3. Fill out the form of installation settings:

    • Appliance Name or IP address
      FQDN of your Nexthink instance.

    • Appliance TCP Port
      Port number to set to 443.

    • Customer Key
      Copy to this field the content of the file that holds the customer key of the Nexthink instance:

      1. Open the customer key file using Notepad.

      2. Press Ctrl+A to select all the text.

      3. Press Ctrl+C to copy the text.

      4. Back in the Customer Key field, press Ctrl+V to paste the copied key.

  4. Click Next.

  5. The installer is now ready and you can click Install to begin the actual installation.

  6. Click Finish to close the installation wizard once it has been completed.

Command-line silent installation

To install Collector in silent mode, use msiexec.exe in the command line. The executable program msiexec.exe comes pre-installed with every Microsoft Windows operating system. Custom parameters are provided directly in the command line 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).

The mandatory parameters are:

  • DRV_IP
    FQDN of your Nexthink instance.

  • CRD_PORT
    Port number to set to 443.

  • CRD_KEY
    The customer key of the Nexthink instance.

Here is an example of an unattended installation:

  1. Type in the command line: msiexec.exe /qn /i Nexthink_Collector.msi DRV_IP=nxdocs.eu.nexthink.cloud CRD_PORT=443 CRD_KEY=<Your_Key_Here> REBOOT=ReallySuppress

  2. Wait for the installation process to complete.

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.

See also: Windows Installer (msiexec.exe) command-line options Reference.

Deploying Collector within a Windows reference image

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:

  1. Log in to the Windows device with Collector as a user with administrative rights.

  2. Press the Windows button on your keyboard.

  3. Type in cmd to make the Command Prompt application appear as a result of the search.

  4. Right-click the Command Prompt icon to open a context menu.

    1. Select Run as administrator from the menu.

  5. From the prompt, stop Collector by typing in
    nxtcfg.exe /stop

  6. Remove the UID of the device
    reg delete "HKLM\SYSTEM\CurrentControlSet\Services\Nexthink Coordinator\params" /v license_uid

    • To the question Delete the registry value license_uid (Yes/No)? Answer by typing in yes.

The system confirms that the operation was successful or displays instead an error message if Collector has not generated the UID yet.

Interaction of Collector with other software

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

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:

  • 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 on active devices after installation.

In any case, 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 for more information.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.