NetSight Setup Guide — Part 20: Deploying the endpoint agent
This is Part 20. Agentless WinRM (Parts 18–19) is perfect for always-on domain PCs — but it needs to reach into each machine, which doesn't work well for laptops that roam, devices that are only briefly online, or machines off the domain. For those, NetSight has a small endpoint agent that flips the direction: it runs on the PC, collects that PC's own inventory, and pushes it out to NetSight on a schedule.
Agent vs WinRM — when to use which
| Agentless (WinRM) | Endpoint agent | |
|---|---|---|
| Direction | NetSight pulls, inbound | PC pushes, outbound |
| Best for | Always-on domain PCs | Laptops, roaming, off-domain |
| Needs | Domain creds + inbound port | Just outbound HTTP + a key |
They're complementary. Many sites use WinRM for the fixed desktops and the agent for the mobile fleet — a machine can even run both, and NetSight simply shows an agent badge on it.
Why the agent is often the easier option: no inbound ports to open, no DNS resolution of clients, no stored domain credentials, and it still works for a machine that's only online for ten minutes.
Step 1 — Turn on enrollment (server side, once)
In NetSight, go to Settings → Inventory and:
- Set an Agent enrollment key — a long random string. This is the shared secret every agent uses to prove it's allowed to report in. Save it.
- Optionally set the Agent report interval (default is every 4 hours).
Also make sure your endpoints can reach the NetSight URL you'll give the agent — the same http://your-server:8000/api/v1 address used elsewhere. The agent only needs outbound access to that.
Step 2 — Build the installer (once)
The agent ships as source you build into a single MSI on any admin PC. The free prerequisites are the ps2exe PowerShell module and the WiX Toolset; then you run the included build script:
powershell -ExecutionPolicy Bypass -File .\build-msi.ps1
That produces NetSightAgent.msi. Importantly, the server URL and key are not baked into the MSI — you supply them at install time, so one MSI works for every machine and every site.
Step 3 — Deploy it across the fleet (Group Policy)
Because the server and key are passed as MSI properties, deploy with a GPO startup script (or scheduled task) that runs msiexec once — not the GPO Software Installation UI, which can't pass properties. Put the MSI on a share both the domain controller and clients can read, and point a computer startup script at a small command like:
msiexec /i "\\SICVD.ORG.PK\NETLOGON\netsight\NetSightAgent.msi" /qn ^
SERVER="http://10.101.104.108:8000/api/v1" ^
KEY="your-enrollment-key" ^
INTERVAL="4"
The script checks whether the agent is already installed and exits if so, so it's safe to leave in place — new machines pick it up automatically, existing ones skip it.
For a handful of machines you can also just run that msiexec line manually, or use the included remote-deploy helper.
Step 4 — What the agent does once installed
After install, the agent stores its config in the registry and, on each interval, it:
- Collects the machine's own OS, CPU, RAM, BIOS/serial, disks, network, installed software, and Windows hotfixes — exactly the same inventory WinRM gathers.
- Sends it as a single outbound HTTPS/HTTP POST to NetSight's /agent/checkin endpoint, authenticated with the enrollment key.
- Logs the result locally and goes back to sleep until the next interval.
No inbound connection is ever made to the PC.
Step 5 — Confirm they're reporting
Back in NetSight's Inventory page, agent-reporting machines appear just like WinRM ones — but with an agent badge on the host, and a fresh last-scan time each interval. A new machine you've never scanned will simply appear the first time its agent checks in, because NetSight creates the endpoint record on first contact (matched by hostname). If a machine already existed from a WinRM scan, its agent check-ins update the same record rather than duplicating it.
Security notes
- The enrollment key is the whole trust model — treat it like a password. If it's ever exposed, rotate it in Settings and push a new value to the agents.
- The agent only ever sends data out; it exposes no listening service and can't be reached from the network.
- Prefer HTTPS for the server URL if agent traffic crosses any untrusted segment.
Why have both
With WinRM covering your fixed clinical PCs and the agent covering laptops and roaming devices, NetSight ends up with a complete inventory — nothing falls through the gap between "always reachable" and "sometimes online." That completeness is exactly what the next section depends on.
Next up — Part 21: Vulnerability management, where that inventory pays off: NetSight matches the software it found against known CVEs and shows you what's vulnerable across your whole estate.
(This continues from Part 19: Building your asset inventory.)