Zoomed Image

Installing the Agent

Endpoint Management Guide

Getting Started

Installing the Agent

Manage > Install Agent pushes the agent to the selected computers from a LAN collection server. The collection server logs on to each computer with a credential pack and starts the installer agentless. The agent then connects to the listening collection server and enrolls.

Endpoints > Endpoint List > select computers > Manage > Install Agent.

The same action is on Endpoints > Endpoints Dashboard > Setup > Not Enrolled, where the list shows only computers without an agent. Getting Started > Install Agent On LAN asks for computer names, IP addresses or a range. Use it for a computer xAssets has not discovered yet.

The dialog

The dialog is titled Install the Discovery Agent.

Field What it does Default
Computer Names, IP Addresses or IP Ranges The computers to install on. Type names, addresses or ranges, separated by commas. The dialog shows the example 10.5.0.1-10.5.0.254,10.5.5.*,ComputerName1,ComputerName2 The selected computers
Credentials A list of credential packs the collection server logs on with. The pack needs local administrator rights on each computer Use credential matching and IP mappings

Credentials ... opens the credential pack list, where you can add a pack. Manage IP Ranges and Locations > opens the IP range to location mappings. The dialog shows a reminder when no mappings exist.

Install the Discovery Agent dialog with DEVDC, Credentials set to Use credential matching and IP mappings, and the Manage IP Ranges and Locations and Credentials buttons

Install sequence

  1. The collection server copies xAssets Endpoint Service.exe and the install script to the computer and starts it over WMI.
  2. The script copies xAssets Discovery Agent Installer.zip and its signed release file from the collection server's pcanalyser share. If the share lacks either file, it downloads both from the app server over https at /secure. The computer must then trust the app server's certificate.
  3. It writes the computer's enrollment code to a file in C:\Windows\Temp. The code is sent to the computer encrypted. The script on the share has a placeholder in its place.
  4. It unzips the file and runs the MSI silently with that file. The command is msiexec.exe /i "xAssets Discovery Agent Installer.msi" /qn REBOOT=ReallySuppress REINSTALLMODE=amus CODEFILE=<file>. The installer reads the code once and deletes the file.
  5. Before the install, the collection server clears any signing key a previous database gave the computer. The computer then takes this database's key on its first contact.
  6. The agent starts and connects to the listening collection server named in Discovery Agent Collection Server. It enrolls with the code, then deletes it.
  7. A discovery load runs and adds the computer's inventory to the register.

The computer does not restart.

The code for each computer

Each computer in the list gets its own enrollment code. The code enrolls only that computer name. It works once and expires after one day. No command line, log or file on the share holds it.

A computer that already has an agent enrolled in this database is skipped. Its agent registers with its own key, without a code. Activity shows "DEVDC is already enrolled, so it was skipped: it keeps its own identity. Use Repair Agent to reinstall it." See Repair Agent.

A computer that already has the agent

The install never replaces an agent. It stops on any computer where the agent service is installed. The run fails with "The xAssets agent is already installed on DEVDC". The message then points to Repair Agent.

Repair Agent works only for an agent connected to this database. An agent from another xAssets system, or an old one, must be removed first:

  1. On that computer, open Programs and Features (or Settings > Apps).
  2. Uninstall xAssets Discovery Agent.
  3. Run Install Agent again.

A rebuilt computer

An enrolled computer registers again with its own key. A rebuilt computer has lost that key. Its registration is refused. The agent log reads "'DEVDC' is already enrolled (through collection server 'CLOUD') and this registration does not prove it is that machine".

  1. Open the computer's asset. Choose Actions for this Asset > Approve Re-enrolment. Only administrators see it.
  2. The message confirms the approval. No command can be sent to the computer until it enrolls again.
  3. Install the agent again from Manage > Install Agent.

The asset and its history stay. The approval is recorded in the computer's events.

Rotating agent credentials

Endpoints > Endpoint List > select computers > Manage > Rotate Agent Credentials gives each agent new credentials for its collection server. Each agent registers again with its own key at its next contact, and its old credentials stop working. An agent that is offline does this when it next connects. Every agent also does this by itself a month after it last registered.

Revoking enrollment codes

Discover > Discovery Dashboard > Getting Started > Revoke Enrolment Codes revokes every unused code for a collection server. No new computer can enroll with them. Computers already enrolled keep working. A used, revoked or expired code cannot enroll a computer after a database restore.

After you click OK

The message reads "Discovery Agent installation has been launched as a batch job" and asks "Do you want to follow it now?". Yes opens Activity. Each computer reports Sent, Applied and Verified. Verified means the new agent has connected and enrolled.

On Endpoints > Endpoint List, the Agent column shows Online for the computer once its agent connects. See Agent States.

Undo

The run cannot be undone from Activity. It does not record whether an agent was there before. To remove the agent, use Manage > Uninstall Agent. See Uninstall Agent and Remove Agent Data.

Taking over a computer keyed to another database

A computer keeps the first signing key it receives. If another xAssets database installed its agent, it shows Online here and refuses every action. Activity > Failures gives the reason as "this computer is keyed to another database - reinstall the agent from here (Manage, Install Agent)".

Remove the agent on that computer first. See A computer that already has the agent. Then install the agent from this database. The install clears the old key, and the computer takes this database's key. The other database loses the computer the same way.

Things to check

  • The computer needs .NET Framework 4.8. Windows Server 2019 and earlier ship 4.7.2. Without 4.8 the run fails and names the reason.
  • The collection server must reach the computer over SMB and WMI. See Network Requirements.
  • Run the install a few minutes after a restart. An install sent while Group Policy is still processing can stay at Sent.
  • The listening collection server must have an Agent Listener address. Without one the install fails with "Collection Server X does not support connections to xAssets Discovery Agent".
  • A computer that has the PCAnalyser MSI from Deploying PCAnalyser as an Agent shares the agent's install folder. Remove that MSI first. Never install both on one computer.
  • "Could not download: this computer does not trust the server's certificate" means the download from the app server failed. A self-signed certificate causes it. Give the app server a certificate the computers trust. Or put the agent package on the collection server's share: installing or upgrading the collection server copies it there.
  • For computers no collection server can reach, use Install Agent Off LAN.