Install the agent on Windows
You need an enrollment token. The portal shows the commands below with your address and token filled in; copy them from there.
Install
Open PowerShell as administrator (right-click, Run as administrator).
Paste the three lines from the portal:
$env:REMEDIFORGE_SERVER_URL='https://YOUR-PORTAL' $env:REMEDIFORGE_ENROLLMENT_TOKEN='ppe_…' iwr -useb -UserAgent 'remediforge-installer' https://YOUR-PORTAL/install.ps1 | iex
The installer:
- downloads the agent from your portal and checks that it is genuine, refusing to install otherwise;
- installs it to
C:\Program Files\RemediForge\remediforge-agent.exe; - creates and starts the Windows service RemediForge agent
(
RemediForgeAgent), set to start automatically; - waits up to 60 seconds for the host to enroll, then deletes the token from the host.
Install with Intune, SCCM or Group Policy (MSI)
To install on many machines at once, use the MSI package instead of PowerShell. In the enrollment dialog choose Intune, SCCM or Group Policy (MSI), select Download the Windows MSI, and deploy it with this command (the portal shows it with your address and token filled in):
msiexec /i remediforge-agent-windows-x64.msi /qn SERVER_URL=https://YOUR-PORTAL ENROLLMENT_TOKEN=ppe_…The MSI installs the same agent and service as the PowerShell installer, and
the token is removed from the machine once it has enrolled. An MSI install
asks nothing, so it installs the Windows app updater only when you add
APP_UPDATER=install to the command:
msiexec /i remediforge-agent-windows-x64.msi /qn SERVER_URL=https://YOUR-PORTAL ENROLLMENT_TOKEN=ppe_… APP_UPDATER=installWithout it, hosts that do not have the app updater are updated from RemediForge's own app catalogue (see below).
The app updater question
RemediForge updates third-party programs (Chrome, 7-Zip, Zoom and many more) with the Windows app updater, a Microsoft component. Most Windows 10 and 11 machines already have it; many servers do not.
If the host does not have it, the installer asks:
remediforge: install the Windows app updater on this host? [Y/n]- Yes: the agent installs it in the background once it is running (about 100 MB). Third-party programs are then updated with it.
- No: RemediForge still updates programs installed for all users (Chrome, Firefox, Zoom, Notepad++, VLC and thousands more) from its own app catalogue. A program is updated this way only when the new version is signed by the same publisher as the one installed, so a few unsigned programs (such as 7-Zip) are limited to RemediForge's own list.
Windows updates themselves come from Windows Update either way.
Installing without anyone to answer
For scripted installs (Intune, GPO, RMM tools), answer in advance by adding one line before the others:
$env:REMEDIFORGE_APP_UPDATER='install' # or 'skip'With no answer and nobody at the keyboard, the installer chooses skip,
so it never downloads 100 MB onto a server unasked. Running the installer
again keeps the earlier answer unless you set REMEDIFORGE_APP_UPDATER again.
Behind Cloudflare
If the command prints a page that starts with "Just a moment...", Cloudflare is stopping
the request before it reaches RemediForge. Ask whoever manages the Cloudflare zone to add
a rule (Security, WAF, Custom rules): User Agent contains remediforge, action
Skip. The installer's commands already send that name. Another way is to install
through a patch cache, which does not go through Cloudflare's check.
Checking the agent
Get-Service RemediForgeAgent
Get-Content C:\ProgramData\RemediForge\agent.log -Tail 50 -WaitFiles on the host:
| Path | What it is |
|---|---|
C:\Program Files\RemediForge\remediforge-agent.exe |
The agent |
C:\ProgramData\RemediForge\state.json |
The host's own credential, readable by Administrators and SYSTEM only |
C:\ProgramData\RemediForge\agent.log |
The agent's log |
If it does not enroll
| Message | What to do |
|---|---|
| "run this in an elevated PowerShell (Run as administrator)" | Open PowerShell with Run as administrator |
| "download failed: is … reachable from this host?" | The host cannot reach your portal on port 443. Check DNS, firewall and proxy |
| "the agent did not enrol within 60s" | Check C:\ProgramData\RemediForge\agent.log. Usually the token has expired, reached its use limit, or the host is outside the token's allowed networks or hostnames. Enrollment attempts in the portal shows the reason |
| "32-bit Windows is not supported" | The agent needs 64-bit Windows |
If the token required approval, the host waits under Waiting for approval on the Enrollment page until an administrator approves it.
Running the installer again
Running it again on an enrolled host upgrades the agent and keeps the
host's identity; only REMEDIFORGE_SERVER_URL is needed. See
Upgrade agents.