The Agent is a single self-contained exe that installs itself as a Windows service - no separate MSI/setup tool, no .NET runtime required on the target PC. This has been built and verified end-to-end (install, service registration, live reporting, offline detection, uninstall) on a real Windows machine.
From C:\Projects\OpsCommandCenter on the Windows dev machine:
.\publish-agent.ps1Produces publish\OpsCommandCenterAgent.exe (~34 MB, self-contained).
Must run elevated (Administrator). Point it at your deployed Server (see server-deployment-ubuntu.md):
OpsCommandCenterAgent.exe --install --server=http://<server-vm-ip>:5252 --interval=10
What this does:
- Copies itself to
%ProgramFiles%\OpsCommandCenter\Agent\OpsCommandCenterAgent.exe - Writes an
appsettings.jsonnext to it with the given server URL and report interval - Registers and starts a Windows service named
OpsCommandCenterAgent(auto-start on boot, auto-restart on crash)
Re-running the same command (e.g. to point at a different server, or to change the interval) is safe - it stops and replaces the existing service rather than erroring.
OpsCommandCenterAgent.exe --uninstall
Stops and removes the service. Installed files are left in place (harmless; a re-install overwrites them).
Since the fleet is already managed with Action1:
-
Upload
OpsCommandCenterAgent.exeas a file/package in Action1. -
Create a script/deployment step that runs (Action1 scripts execute as SYSTEM, so elevation is automatic - no UAC prompt to worry about):
OpsCommandCenterAgent.exe --install --server=http://<server-vm-ip>:5252 --interval=10 -
Target it at the endpoint group covering your managed PCs.
To push an update or repoint every Agent at a new server address later, just re-run the same script - the installer is idempotent.
sc query OpsCommandCenterAgentShould show RUNNING. Within a few report intervals the PC should appear as a card on the
dashboard.
Disk health reporting relies on MSFT_StorageReliabilityCounter support in the storage driver.
Some SATA SSDs don't expose it (confirmed during testing on a Kingston SA400) and will show
"n/a" for disk health rather than a guessed number - this does not affect the computer's
overall status color.