Agent and Agentless
An action reaches a computer by one of two routes. With the agent, the computer holds an outbound connection to a listening collection server and receives the action at once. Agentless, a LAN collection server connects in to the computer, copies a small program to it and starts it with stored credentials.
Both routes run the same script engine on the computer. The action, its phases and its answer are the same. A run can include computers on both routes.
Side by side
| Agent | Agentless | |
|---|---|---|
| Direction of the connection | The computer connects out to the collection server | The collection server connects in to the computer |
| Line of sight | None needed from the collection server to the computer | The LAN collection server must reach the computer |
| What runs on the computer | The agent, always running | xAssets Endpoint Service.exe, started for one script, then it exits |
| How it is started | The action arrives over the open connection | Copied from the collection server's pcanalyser share and started over WMI |
| Credentials | None. The agent enrolled with an installation code | A credential pack with administrator rights on the computer |
| Ports | One outbound port, 44399 by default | SMB (445) and WMI (135 plus dynamic RPC) inbound to the computer |
| Collection servers needed | One listening collection server can serve every network | One LAN collection server for each network you manage |
| Inventory | Discovery reports from the agent on its own schedule | Discovery runs when the network discovery runs |
Choosing a route
Use the agent for computers you cannot reach from a collection server. Laptops at home, servers in another site and machines behind a firewall all fit. The agent needs one outbound port and nothing inbound.
Use agentless for computers on the same network as a LAN collection server. It needs no installation and works on a computer the moment discovery finds it.
Agentless does one job and exits. Nothing stays on the computer to watch it, so it cannot protect a computer between jobs. Where a computer needs continuous protection, install the agent.
The common pattern combines them. A LAN collection server discovers the network. Manage > Install Agent pushes the agent agentless. From then on every action goes over the agent. See Installing the Agent.
Route selection
The collection server decides for each computer in the run.
- On a listening collection server, a computer enrolled there takes the action over its agent connection. This applies even when the agent is offline at that moment. The target then waits at Sent.
- On a listening collection server, a computer that never enrolled there is unreachable. The collection server logs "no agent is enrolled here" for it. If no target could be sent, the job fails at once with that reason.
- A LAN collection server pushes the action agentless to each computer it can reach.
Installing an agent on a computer that has none needs a LAN collection server.
Server requirements by route
| Route | Servers | Port |
|---|---|---|
| Agent | A listening collection server. The Install Agent Off LAN form and Setup Collection Server call it the Cloud Collection Server. Every agent must be able to reach its Agent Listener address. | The agent connects out to it on TCP 44399 by default |
| Agentless | A LAN collection server on the same network as the computer, with a credential pack that is a local administrator there | The collection server connects in over SMB 445 and WMI (RPC 135 plus the dynamic range) |
| Relay | The relay and a listening collection server. Only Remote Desktop, Command Prompt and PowerShell use the relay. | The agent and your browser connect out to the relay on TCP 5200 |
| No agent needed | No collection server, except where the table below names one |
A computer with an agent takes every action over the listening collection server, including the actions that also work agentless. A LAN collection server is still needed for network discovery and to push the agent to a computer that has none. See How It Works for the two kinds of collection server and Set Up the Relay for the relay.
Actions by agent requirement
Each action on the action strip is in one of three groups.
- No agent needed. The action changes records on the server or reads the domain or Entra. Nothing is sent to the computer.
- Agent or agentless. The action runs on either route. A computer with an agent uses the listening collection server. A computer without one needs a LAN collection server.
- Agent. The action needs the agent on the computer and a listening collection server. On a computer without the agent the action fails.
The Computers list in an action's dialog offers only computers with an agent. To send an agentless action, type the computer name in the list. A LAN collection server picks the credential pack for each computer. Discover Now, Install Agent and Uninstall Agent also let you choose the pack.
| Group | Action | Needs | Servers |
|---|---|---|---|
| Show | Health, Security, Hardening, Antivirus, Updates, Firewall, Disks, Clock, Services | Agent. The lists show readings the agent took. A computer without the agent shows only what network discovery found. | Listening |
| Refresh Now | Agent | Listening | |
| Fetch | Discover Now | Agent or agentless | Listening or LAN |
| Processes | Agent or agentless | Listening or LAN | |
| Ask Selected Endpoints, Current Performance, Event Log, Registry Value, WMI Query | Agent | Listening | |
| Check Agent Connection, Check Open Ports From Selected Computer | Agent | Listening | |
| Change > Updates and Antivirus | Install Updates, Patching Schedule | Agent. Windows Update refuses an install started from a remote session. | Listening |
| Uninstall Update, Update AV Signatures, Run AV Scan | Agent or agentless | Listening or LAN | |
| Set Ring | No agent needed. The ring takes effect when the agent installs updates. | None | |
| Change > Software and Files | Install Software | Agent or agentless. Agentless installs need a web address as the Software Library home. | Listening or LAN |
| Remove Software, Download File, Unpack Archive | Agent or agentless | Listening or LAN | |
| Run a Script, Copy File | Agent | Listening | |
| Change > Security Policy | Set Firewall Policy, Apply Group Policy | Agent or agentless | Listening or LAN |
| Apply Hardening Settings, Set Audit Policy, Set AppLocker Policy, Reset Local Password | Agent | Listening | |
| Assign Baseline, Deploy Detection Watches | Agent. The agent applies and checks them on its own schedule. | Listening | |
| Change > Repair | Reset Network Settings | Agent or agentless | Listening or LAN |
| Sync Clock, Time Zone, Stop a Running Process, Service Control | Agent | Listening | |
| Repair System Files, Free Up Disk Space | Agent. Agentless, they start but never report a result. | Listening | |
| Send Stored Data Now | Agent | Listening | |
| Change > Power and User | Send Message to User | Agent or agentless | Listening or LAN |
| Restart, Shut Down, Lock Screen, Log Off User | Agent | Listening | |
| Connect | Remote Desktop, Command Prompt, PowerShell | Agent. The session runs through the relay. | Listening and relay |
| Run Command | Agent or agentless. It does not use the relay. | Listening or LAN | |
| Directory | Rename Computer, Join Domain, Leave Domain | Agent | Listening |
| Domain Security | No agent needed. It checks the whole domain. | LAN, on the domain's network | |
| Entra Security | No agent needed. The app server reads the Entra tenant. | None | |
| Manage | Plan Replacement, Remove Agent Data | No agent needed | None |
| Retire | No agent needed. Remove Agent sends an uninstall to computers that have the agent. | None. Listening to remove the agent. | |
| Install Agent Off LAN | No agent needed. The new agent connects to the listening collection server. | Listening | |
| Install Agent | Agentless push. The new agent then connects to the listening collection server. | LAN, then listening | |
| Uninstall Agent | Agent or agentless | Listening or LAN | |
| Repair Agent, Certificate Change, Performance Role, Probe Station Role | Agent | Listening |
Result signatures
An agent signs its answers, health readings and inventories with its own key. The collection server cannot make or change them. See Signed results.
Agentless result proof
An agentless result can carry a proof from the computer's own machine certificate. The collection server does not hold that certificate's private key, so it cannot write a result without running on the computer.
Requirements:
- Your own certification authority, such as Active Directory Certificate Services, issues each computer a machine certificate by auto-enrollment.
- The certificate allows Client Authentication. Its subject or DNS name is the computer's name.
- The computer name has 15 characters or fewer. A longer host name never matches.
Self-signed certificates are never used. A computer with no machine certificate sends its result without a proof, as before.
The check uses these settings:
| Setting | Effect |
|---|---|
AgentlessProofCAs |
The thumbprints of the root or issuing certification authorities, comma separated. Blank (default) turns the check off. |
AgentlessProofRequired |
1 also refuses an agentless result with no proof. Otherwise such a result is accepted. |
The app server checks the certificate's name, dates, Client Authentication use, its chain to a listed authority, and the signature. A result that fails is recorded as a failure with the reason "The result from this endpoint was rejected". Revocation is not checked. A revoked certificate passes until it expires. Agentless discovery is not covered.
The collection server signs in to each agentless computer as an administrator. It can always run its own program there. The proof stops a result made up without running on the computer. Windows records the program it runs.
No action goes through Microsoft Intune or another endpoint manager. Intune supplies device and user details only. See Microsoft Intune.
Key points
- An agent reports to one database. A computer keyed by another database refuses actions from this one until you install the agent from here.
- The agentless program keeps nothing between runs. Certificate Change has nothing to clear on it and reports "notapplicable".
- Agentless actions need line of sight from a LAN collection server. A listening collection server cannot reach a computer with no agent.