Devices and the agent
A device is a Windows computer with the PrintCtrl agent installed. This page covers installing the agent on one computer or thousands, what the agent does, working with devices in the dashboard, and how agent updates reach them.
Docs: Devices and the agent
Requirements
- 64-bit Windows 10, Windows 11, or Windows Server 2016 and later.
- Outbound HTTPS to
api.printctrl.io, the same as a web browser. No inbound ports, VPN or print server. - Administrator rights to install. The agent then runs as a Windows service under LocalSystem.
Add one device
Adding devices is an administrator action, because the install token adds computers to a customer.
Go to Fleet → Devices and select Add device. With several customers, pick one in the switcher first, or choose one in Choose a customer… at the top of the page. A new account with no customer yet is asked Who is this for? first.
On the PowerShell tab, select Copy next to the command.
On the computer, open PowerShell as an administrator, paste the command and press Enter. It downloads the agent, checks it against its published checksum and installs it silently.
Watch Waiting for devices on the same page. The computer appears there, under New devices, as soon as it connects, usually within a minute.
Install on many computers
The same token works on every computer at a customer, so one command or one package covers them all. Each tab on Add device shows the exact line with your token filled in.
| Tab | Use it for | What to run |
|---|---|---|
| PowerShell | One computer, or a script your RMM runs as SYSTEM | The one-line command shown, which passes the token to the install script. |
| Command line | Scripts and deployment tools, Group Policy startup scripts | The msiexec line below, from an elevated prompt in the folder with the MSI. |
| Installer | Installing by hand | Download the MSI, run it, and paste the token when it asks. |
| RMM / Intune | Intune, RMM tools, software deployment | Add PrintCtrl-Agent.msi as a Windows MSI app installed for the device (system context), with install arguments /qn TOKEN=…. |
msiexec /i PrintCtrl-Agent.msi /qn TOKEN=…
Intune
Download
PrintCtrl-Agent.msifrom the RMM / Intune tab.In Intune, add a Line-of-business app for Windows and upload the MSI.
Set the command-line arguments to
/qn TOKEN=followed by your token, copied from the tab.Install it in the device context, and assign it to the device group you want.
Detect the install by the product name PrintCtrl Agent. To uninstall, use msiexec /x {product code} /qn.
Group Policy
Put the MSI on a share the computers can read and run the Command line install from a computer startup script, which runs as SYSTEM. Plain Group Policy software installation can’t pass the token, so use the startup script rather than an assigned package.
RMM tools
Run the PowerShell command or the Command line install as a script that runs as SYSTEM, or add the MSI as a package with the install arguments from the RMM / Intune tab.
MSPs: each client has its own token. Keep one RMM policy per client, or store the token as a client-level variable in your RMM and pass it in.
The install token
Each customer has one install token. Add device shows it, masked until you select Show token, with how many devices have used it.
If a token leaks, select Replace. The old token stops working at once. Devices already added keep working. Scripts, RMM jobs and Intune apps that use the old token need the new one.
What the agent does
- Reports the printers, ports and drivers on the computer, including printers a person added for themselves only, and who is signed in.
- Looks for printers on the local network, every 15 minutes by default. See network discovery.
- Installs, updates and removes the printers you assign, as LocalSystem, so people don’t need admin rights.
- Checks the printers it’s asked to watch and reports status, supplies and page counts.
- Restarts the Windows print spooler if it stops responding.
- Updates itself. If a new version doesn’t start properly, it goes back to the version it had.
On the computer, the agent writes its log to %PROGRAMDATA%\PrintCtrl\logs\agent.log. It starts a new file at 50 MB and keeps the four before it, so its logs never take more than 250 MB. Updates write to update.log in the same folder, which keeps one older copy at 1 MB.
The Devices list
Fleet → Devices lists every device in the customer you’re looking at, with its status, customer, who is signed in (Last user), its printer count and when it was last seen. Columns adds the operating system, agent version and addresses.
- Search by name, hostname, IP address or customer.
- Filter by status, operating system, agent version, how long it has been offline (Under 24 hours, 24 hours or more) and deployments (Failed, Waiting for device, In progress, Installed, Removed by user).
- The row menu has Edit, which opens the device’s Settings tab, and Run discovery. Administrators also get Restart agent, Update agent and Uninstall agent.
- Select several to run Run discovery, Update agent, Restart agent or Uninstall agent on all of them. Everything except Uninstall agent goes only to the ones that are online.
- Export downloads the list as it’s filtered.
A device’s page
Select a device to open it. The top right has Refresh and Run discovery, which rescans its printers now. For administrators, the More actions menu (…) beside them has Update agent, Restart agent and, last, Uninstall agent.
| Tab | What it holds |
|---|---|
| Overview | Host facts: hostname, who is signed in, Windows version and build, hardware, agent version and how its last update went, local and WAN addresses, when it enrolled and was last seen, and the agent UUID. Beside it, Performance: how long the last inventory scan, network sweep and monitoring sweep took, round trip and agent memory. |
| Settings | The device’s name, agent settings, what people see on it, and Printer monitoring. See below. |
| Printers | The printers on the device. Each row’s menu has Print test page, Print document, Clear queue, Apply a print profile, Save as a print profile and Remove from device. A printer PrintCtrl deployed is removed from its managed printer instead. |
| Ports | Printer ports. Remove port works once no printer uses the port. |
| Drivers | Installed print drivers, with version, architecture, date, whether each is package-aware, and its INF. |
| Deployments | Each managed printer assigned to the device, its state and attempts. |
| Logs | The last 200 lines of the agent’s log, read from the device when the tab opens, then new lines as they’re written. PrintCtrl doesn’t store agent logs. |
The Settings tab
| Setting | What it does |
|---|---|
| Display name | The name shown in the dashboard. Blank uses the hostname. |
| Discovery interval | How often, in seconds, the device rescans its printers, ports and drivers. Default 900 (15 minutes), minimum 60. |
| Monitor interval | How often, in seconds, watched printers are checked. Default 60, minimum 15. |
| Log level | Info, or Debug while you troubleshoot. |
| What people see on this computer | Same as the customer, or a different tray setting for this one computer, such as a shared kiosk. |
| Watch printers from this device | Under Printer monitoring: whether this device checks printers on its network, and the Settings for printers it watches. See Monitoring and alerts. |
Administrators change these. A bar at the bottom counts unsaved changes, with Save and Discard. The agent picks up changes at its next check-in.
Agent updates
Agents update themselves. You never redeploy the installer. When a new version is published, each device takes it according to its update channel:
| Channel | When a new version installs |
|---|---|
| Early | As soon as it’s published. Good for your own or test computers. |
| Standard | In stages, a day apart. The rollout stops on its own if updates start failing. |
| Delayed | A week after it has reached every Standard device. |
Set the account’s channel under Company → Settings → Agent updates. The panel also shows where the current rollout is, such as which version has reached what share of Standard devices and when the next stage starts. A customer can use a different channel: open the customer, then Details → Agent updates.
A common setup: put your own office, or one client you know well, on Early, leave most customers on Standard, and put sensitive sites on Delayed. Update agent on a device page installs the newest version on that device straight away, whatever its channel.
Uninstall the agent
Choose Uninstall agent in the More actions menu on a device’s page or in its row menu, or select several devices on the list and choose Uninstall agent. PrintCtrl removes itself from the computer and the device leaves your account. Printers it installed stay on the computer.
If the device is offline, it can’t remove itself. It is removed from the dashboard and can no longer connect. Uninstall PrintCtrl on the computer itself to finish, with msiexec /x or from Windows Settings.