Skip to main content
Version: 11.5.0

Set Up Endpoint Guard for Windows

Endpoint Guard for Windows installs from one installer, with one command line. This page has two guides:

Both guides use the commands in the Command-Line Reference.

Before You Start​

Every installation needs the installer, your gateway address and an enrollment token. Who Provides What says where each one comes from, and Prepare the AgentPass Console creates the token. Download the installer from Desktops → Installation in the console. See Install Endpoint Guard.

There is one installer for each processor: EndpointGuard-X64-<version>-<date>-Setup.exe for x64 workstations, and EndpointGuard-ARM64-<version>-<date>-Setup.exe for ARM64 workstations. The examples on this page use the X64 installer. On ARM64 workstations, use the ARM64 one.

Each workstation needs Windows 11 version 24H2 or later, and outbound HTTPS to your gateway address. Whoever runs the installer needs local administrator rights. See Check the Workstation.

The installer does not check whether the token is active

On a new installation, the installer checks that your gateway answers and that the token is in the right format. It does not check whether the token is still active, or whether Watch desktops is on. Confirm every workstation in the console afterwards. See Confirm Enrollment.

Deploy Endpoint Guard From an MDM​

A mobile device management (MDM) tool, such as Microsoft Intune or Configuration Manager, installs Endpoint Guard on every workstation at once. Run the installer from it as SYSTEM, with the install command, /accepteula, your gateway address and a file that holds the enrollment token:

EndpointGuard-X64-<version>-<date>-Setup.exe install /accepteula /server=https://<your-gateway-address> /tokenfile=token.txt

The installer runs with no window, and returns an exit code your MDM reads directly. On a workstation where Endpoint Guard is installed, the same command updates it instead. One command therefore serves new and installed workstations.

Before a new installation changes anything, the installer checks that your gateway answers. If the gateway can't be reached, the installer returns 1618, and your MDM tries again later. Nothing is installed until the check passes.

Deliver the Enrollment Token​

Put the token in a text file named token.txt, and package it with the installer. Pass the file with /tokenfile. The token then stays out of your MDM's command line and its logs. It also stays off the command line of every program the installer runs on the workstation.

The installer reads the file, then deletes it. When it returns 1618, it keeps the file for the retry. The setup log shows only the file's path.

The installer runs as SYSTEM, so it refuses a token file that someone without administrator rights could change or replace. It returns 87, logs the reason and leaves the file where it is, unless:

  • Only SYSTEM, the Administrators group, or the account running the installer can change the file and its folder
  • No folder on the file's path is a link or a junction
  • The file is an ordinary file of at most 4 KB, with no other links to it

A token file packaged with the installer in Intune or Configuration Manager meets these conditions. To copy the file to the workstation yourself, put it in a folder only administrators can change, owned by the Administrators group. A new folder at the root of C: lets every user change its contents, so a token file there is refused.

Protect the enrollment token

Anyone with the token can enroll a workstation in your organization. Limit who can read the deployment package. With /token, the token is also in the deployment's command line, so limit who can read the deployment and its logs too. If a token is exposed, remove it in the console and create a new one. Workstations that already enrolled keep reporting.

Deploy With Microsoft Intune​

Add Endpoint Guard to Intune as two Windows apps (Win32), one for each processor, installed in the device (SYSTEM) context. Set up each app the same way, with its own installer:

  1. Put one installer and token.txt in a folder, and package the folder with the Microsoft Win32 Content Prep Tool.

  2. In the Intune admin center, add a Windows app (Win32), and upload the .intunewin file.

  3. On Program, set the install command:

    EndpointGuard-X64-<version>-<date>-Setup.exe install /accepteula /server=https://<your-gateway-address> /tokenfile=token.txt
  4. Set the uninstall command:

    EndpointGuard-X64-<version>-<date>-Setup.exe uninstall
  5. Set Installation behavior to System.

  6. Keep the default return codes. They already mark 1618 as Retry, so Intune tries again later when the gateway can't be reached.

  7. On Requirements, set the operating system architecture to x64 for the X64 app or ARM64 for the ARM64 app. Set the minimum operating system to Windows 11 24H2. Each workstation then gets only the app for its processor.

  8. On Detection rules, add a Registry rule with these settings:

    • Key path: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\HyprAgentPass
    • Value name: DisplayVersion
    • Detection method: Version comparison, Greater than or equal to, and the installer's version, such as the <version> in its file name
    • Associated with a 32-bit app on 64-bit clients: No
  9. Assign the app to a test group first. Check that those workstations appear in the console before you assign it more widely. See Confirm Enrollment.

To deploy a newer version, add it the same way, and set it to supersede the earlier app with Uninstall previous version off. The newer installer updates each workstation in place, and the workstation keeps its enrollment.

Deploy With Configuration Manager​

Create an application with two Script Installer deployment types, one for each processor. For each, set:

  • Installation program: the same command as for Intune, with token.txt in the content folder
  • Uninstall program: EndpointGuard-X64-<version>-<date>-Setup.exe uninstall, with that deployment type's installer
  • Requirements: the operating system architecture, x64 or ARM64
  • Detection method: a registry setting in HKEY_LOCAL_MACHINE, key SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\HyprAgentPass, value DisplayVersion, data type Version, Greater than or equal to the installer's version. Leave the 32-bit application option cleared
  • Installation behavior: Install for system, whether or not a user is signed in

Keep the default return codes, which treat 1618 as a retry.

Deploy With Other Tools​

Any tool that runs a command as SYSTEM can deploy Endpoint Guard with the same install and uninstall commands. Detect it by the same registry value.

Endpoint Guard's entry in Settings > Apps also carries a quiet removal command, so tools that read it can remove Endpoint Guard with no window. For example, from an administrator command prompt:

winget uninstall --name "HYPR AgentPass Endpoint Guard" --exact --silent

Update and Remove From Your MDM​

The install command also updates a workstation where Endpoint Guard is installed, so a newer app needs no other command. To update only workstations that already have Endpoint Guard, use update instead. It returns 1605 on a workstation where nothing is installed:

EndpointGuard-X64-<version>-<date>-Setup.exe update

The uninstall command removes Endpoint Guard, and returns 0 on a workstation where nothing is installed. For what an update keeps, see Updates. For the files a removal leaves until the next restart, see Remove Endpoint Guard From One Workstation.

Collect the Setup Log​

Each run writes a setup log that ends with the exit code and its reason. See Setup Logs. To collect a setup log from Intune, open the failed app's installation details, select Collect diagnostics, and enter the log's full path. Intune needs a fixed file name, so add one to the install command:

"/log=C:\ProgramData\HYPR AgentPass Setup\Logs\EndpointGuard-Setup.log"

Each run adds to the end of that file.

Recommended for MDM deployments
  • Use one token per rollout group. Each token then shows how many workstations enrolled with it, and you can remove one group's token without touching another's.
  • Change settings with the MDM, not a reinstall. To move workstations to a different gateway address or token, push the registry values from the same MDM. See Change the Gateway Address or Enrollment Token.

Install Endpoint Guard on One Workstation​

To install on one workstation, use the installer's window, or run the installer from an administrator command prompt. Either way, you need local administrator rights, the gateway address and the enrollment token.

Install With the Installer's Window​

The installer's window asks for the gateway address and the token, then installs.

  1. Double-click the installer, and allow it to make changes to the workstation.

  2. In AgentPass server, enter the gateway address.

  3. In Enrollment token, paste the token. It starts with ssf_.

  4. Choose the options. Both appear on every workstation, and both are selected by default.

    • Set up Claude Code to use AgentPass right away (recommended) applies Claude Code's settings at once, instead of after the user's next Windows sign-in.
    • Set up Claude Desktop to use AgentPass right away (recommended), even if it isn't installed yet sets Claude Desktop to send its requests to your gateway with the user's Claude Code sign-in. It also turns off Claude Desktop's automatic updates and usage analytics, so your IT team delivers its updates. If Claude Desktop is not installed yet, the setting takes effect once it is. On a workstation without Claude Code, the user signs in from Claude Desktop's Code tab. The user restarts Claude Desktop afterwards. The installer leaves any Claude Desktop policy your organization already set under HKLM\SOFTWARE\Policies\Claude.
  5. Select I agree to the End User License Agreement, and click Install.

    The Endpoint Guard for Windows installer, with the AgentPass server and Enrollment token fields filled in, the Claude Code option selected, the Claude Desktop option and the license agreement box cleared, and the Install button unavailable
  6. Wait for the result. A message says that Endpoint Guard is installed and running, or gives the reason it stopped and the setup log's location.

The token you paste stays off the command line of every program the installer runs on the workstation.

Install From an Administrator Command Prompt​

Open a command prompt as an administrator, and run the installer with the same command an MDM uses:

EndpointGuard-X64-<version>-<date>-Setup.exe install /accepteula /server=https://<your-gateway-address> /tokenfile=token.txt
echo %ERRORLEVEL%

The prompt waits for the installer to finish, and its output appears in the same window. The first and last lines of output name the setup log. %ERRORLEVEL% then holds the exit code.

In PowerShell, run it the same way, and read $LASTEXITCODE:

.\EndpointGuard-X64-<version>-<date>-Setup.exe install /accepteula /server=https://<your-gateway-address> /tokenfile=token.txt
$LASTEXITCODE

A relative /tokenfile path starts from the installer's folder. The file must meet the conditions in Deliver the Enrollment Token.

From a prompt that isn't elevated, Windows asks for administrator rights, and no output appears. The setup log has the result.

Ctrl+C and closing the window

While the installer runs, Ctrl+C is ignored. Closing the window stops it halfway: run the same command again to finish the job. In PowerShell, Ctrl+C still lets the installer finish, but PowerShell then skips the rest of the line or script. Read $LASTEXITCODE on its own afterwards.

Confirm the Installation​

To check that the service is running, run this from any command prompt:

sc.exe query HyprAgentPass

The STATE line shows RUNNING while the service runs. It does not show whether the workstation enrolled. The console does: see Confirm Enrollment.

Update One Workstation​

Run the newer installer. In its window, click Update, or Reinstall for the same version. From an administrator command prompt, run it with update:

EndpointGuard-X64-<version>-<date>-Setup.exe update

The workstation keeps its enrollment, so an update needs no token and no /accepteula. See Updates.

Change the Gateway Address or Token on One Workstation​

The service reads its gateway address and enrollment token from the registry, and enrolls again when either one changes. The installer doesn't change them on an installed workstation. From an administrator command prompt, set the value you want to change:

reg add "HKLM\SOFTWARE\HYPR AgentPass" /v "Server URL" /t REG_SZ /d https://<your-gateway-address> /f
reg add "HKLM\SOFTWARE\HYPR AgentPass\Protected" /v "Enrollment Token" /t REG_SZ /d <enrollment-token> /f

Then revoke the workstation's earlier desktop entry, as Change the Gateway Address or Enrollment Token describes.

Keep the token out of command histories

A token on a reg add line can be recorded in the command history and in process-creation logs. For many workstations, set the values from your MDM or Group Policy instead.

Remove Endpoint Guard From One Workstation​

Open Settings > Apps, find HYPR AgentPass Endpoint Guard, and uninstall it. The installer's window opens: click Uninstall, then Yes. From an administrator command prompt, run the installer with uninstall instead:

EndpointGuard-X64-<version>-<date>-Setup.exe uninstall

Uninstalling tells your gateway, reverts the settings Endpoint Guard added, and deletes the installation folder. See Remove Endpoint Guard.

Files still in use are deleted when the workstation next restarts. Use Restart: while Fast Startup is on, Shut down doesn't count. Until then, the files wait in a folder named HYPR-AgentPass-Removed-<id> in C:\Windows\Temp. You can install Endpoint Guard again before the restart.

Command-Line Reference​

The command comes first, and its options follow.

Options start with / or -, in any case. A value follows = or :, with no space. The installer refuses a line with 87 when it has:

  • options with no command before them, or an unknown command or option
  • an option the command doesn't take
  • the same option twice, with different values
  • both /claudedesktop and /noclaudedesktop
  • more than one of /token, /tokenfile and /tokenstdin
  • a value after a space instead of = or :
  • an option of an earlier version of the installer

The error says what is wrong, and never shows the enrollment token. For an option of an earlier version, it names what replaces it.

Commands​

The installer takes these commands. Each one needs administrator rights, so run them from an administrator command prompt, where their output appears:

CommandWhat it does
installInstalls Endpoint Guard. On a workstation where it is installed, updates it instead, and ignores the options only a new installation uses
updateUpdates or repairs Endpoint Guard. Returns 1605 when nothing is installed
uninstallRemoves Endpoint Guard. Returns 0 when nothing is installed
versionShows the installer's version
helpLists the commands and exit codes. help <command>, or <command> /?, lists that command's options

Options​

Each option works with the commands listed in its row:

OptionCommandsEffect
/accepteulainstallAccepts the End User License Agreement. Required for a new installation, not for an update
/server=<url>installThe gateway address, over HTTPS. Used by a new installation only
/tokenfile=<path>installReads the enrollment token from this file, then deletes it. See Deliver the Enrollment Token
/token=<token>installThe enrollment token itself. A new installation needs one of /tokenfile, /token or /tokenstdin
/tokenstdininstallReads the enrollment token from standard input
/proxy=<url>installA proxy for the installer's gateway check, such as http://proxy.example.com:8080. The service keeps using the workstation's own proxy settings
/noclaudecodeinstallLeaves out the Claude Code setup on a new installation
/claudedesktopinstall, updateSets up Claude Desktop. A new installation does this by default
/noclaudedesktopinstall, updateLeaves out the Claude Desktop setup. On an update, removes the settings the installer added
/loglevel=<level>install, updateSets the service's log level: Fatal, Error, Warn, Info, Debug or Trace
/log=<path>install, update, uninstallWrites the setup log to this file. See Setup Logs
/nologoevery commandLeaves out the banner

A relative path in /tokenfile or /log starts from the installer's folder.

Use /proxy where the workstation can't reach the gateway directly. The installer authenticates to a proxy as the computer, so a /proxy address with a user name or password is refused.

Exit Codes​

The installer returns Windows Installer exit codes, which deployment tools read directly:

Exit codeMeaning
0Success. uninstall also returns it when nothing is installed
87The command line isn't valid, or /accepteula is missing on a new installation. Also a gateway address or token that isn't valid, or a token file that can't be used. The setup log has the reason
1602Canceled in the installer's window
1603The installation, update or removal failed. This includes a damaged installer file, and a gateway that answers but can't be used, such as one whose certificate isn't trusted. The setup log has the reason
1605update found nothing installed. Use install
1618Try again later. Another Endpoint Guard installation is running on the workstation, or the gateway can't be reached. The setup log says which
1633The installer is for the other processor. Use the X64 installer on x64 workstations and the ARM64 installer on ARM64 workstations
1638A newer version is already installed. Remove it first to install an older one

Updates​

On a workstation where Endpoint Guard is installed, install and update both update it. The workstation keeps its enrollment and its Claude Code setup.

  • update takes only /claudedesktop, /noclaudedesktop, /loglevel, /log and /nologo. Any other option returns 87.
  • install ignores /server, /token, /tokenfile and /noclaudecode on an installed workstation, and the setup log names each one it ignored. A token file given to it is deleted, or left in place and logged when it isn't safe to use.
  • An update keeps the Claude Desktop choice made at installation. To change it, add /claudedesktop or /noclaudedesktop. /noclaudedesktop removes the Claude Desktop settings the installer added, and leaves any your organization set.
  • A workstation set up with an earlier version has no recorded Claude Desktop choice. The update sets up Claude Desktop on it, unless you add /noclaudedesktop.
  • A workstation where an earlier version was unzipped into another folder moves to C:\Program Files\HYPR AgentPass, and keeps its enrollment. Delete the earlier folder afterwards.

After the update, the installer tells your gateway the version now installed. The console then shows the same desktop with its new client version, and the ingest-activity log records an accepted UPGRADE entry. If the workstation can't reach the gateway, the update still completes, and the setup log records that the gateway was not told.

Setup Logs​

Each run of install, update or uninstall writes a setup log. Its last line starts with RESULT:, and gives the exit code and its reason. Without /log, the log goes to:

C:\ProgramData\HYPR AgentPass Setup\Logs\HYPR-AgentPass-<command>-<date>-<time>.log

<command> is Install, Update or Uninstall, or Setup for a line with no command. help and version write no log. At a command prompt, the first and last lines of output name the log.

Runs with the installer's window write their log to the user's temporary folder, and an error message names it. The enrollment token is never written to a setup log.

Only members of the local Administrators group can open the logs in C:\ProgramData\HYPR AgentPass Setup\Logs. They stay after Endpoint Guard is removed.

If the installer can't use C:\ProgramData\HYPR AgentPass Setup, it stops with 1603 before it changes anything, and writes no log there. It records the reason in the Windows Application event log, as an error from the source HYPR AgentPass Setup. The message says what to remove. An administrator deletes the folder, then runs the installer again.