SwitchHunt / catalog
Puppet Agent - Silent Install Switch
The hand-curated silent install command for Puppet Agent on Windows, plus its silent uninstall command - for unattended, quiet, fleet-wide deploys. Copy, paste, ship - smoke-test in a throwaway VM first.
Silent install command
msiexec /i "installer.msi" /qn /norestart PUPPET_SERVER=puppet.example.com PUPPET_AGENT_STARTUP_MODE=Automatic Silent uninstall command
msiexec /x "installer.msi" /qn /norestart Replace installer.msi with the actual installer filename (or its full path).
Notes & gotchas
Set PUPPET_SERVER or the agent looks for a host literally named "puppet". Lab-tested with PUPPET_AGENT_STARTUP_MODE=Manual so the test VM did not try to check in; Automatic is what you want in production.
Install options
Add any of these to the install command. Values shown are the useful setting; "..." means you supply your own.
| Option | What it does |
|---|---|
PUPPET_SERVER=puppet.example.com | Your Puppet server. |
PUPPET_AGENT_STARTUP_MODE=Automatic | Automatic, Manual or Disabled service start. |
PUPPET_AGENT_CERTNAME="..." | Override the certificate name (defaults to the FQDN). |
PUPPET_CA_SERVER="..." | The CA server, when it is not PUPPET_SERVER. |
PUPPET_AGENT_ENVIRONMENT="..." | The node's environment (default production). |
PUPPET_AGENT_ACCOUNT_USER="..." | Run the agent service as this account instead of LocalSystem (with _PASSWORD and _DOMAIN). |
ENABLE_LONG_PATHS=TRUE | Long-path support for the agent; also set HKLM\SYSTEM\CurrentControlSet\Control\FileSystem LongPathsEnabled=1. |
Lab-tested
On 2026-10-16 we ran the install command above as SYSTEM (how deployment tools run it) on a Windows 11 VM against Puppet Agent 8.10.0, and confirmed the app showed up in Add/Remove Programs - not just that the installer exited 0. The uninstall command above then removed it. Vendors change installers between versions, so smoke-test a new one before you ship it fleet-wide.
FAQ
What is the silent install command for Puppet Agent?
Run: msiexec /i "installer.msi" /qn /norestart PUPPET_SERVER=puppet.example.com PUPPET_AGENT_STARTUP_MODE=Automatic
How do I silently uninstall Puppet Agent?
Run: msiexec /x "installer.msi" /qn /norestart
Any gotchas installing Puppet Agent unattended?
Set PUPPET_SERVER or the agent looks for a host literally named "puppet". Lab-tested with PUPPET_AGENT_STARTUP_MODE=Manual so the test VM did not try to check in; Automatic is what you want in production.
What install options does the Puppet Agent installer take?
PUPPET_SERVER=puppet.example.com: Your Puppet server. PUPPET_AGENT_STARTUP_MODE=Automatic: Automatic, Manual or Disabled service start. PUPPET_AGENT_CERTNAME: Override the certificate name (defaults to the FQDN). PUPPET_CA_SERVER: The CA server, when it is not PUPPET_SERVER. PUPPET_AGENT_ENVIRONMENT: The node's environment (default production). PUPPET_AGENT_ACCOUNT_USER: Run the agent service as this account instead of LocalSystem (with _PASSWORD and _DOMAIN). ENABLE_LONG_PATHS=TRUE: Long-path support for the agent; also set HKLM\SYSTEM\CurrentControlSet\Control\FileSystem LongPathsEnabled=1.
Got a different installer, or one that isn't in this list? Drop it into SwitchHunt and it reads the silent switches right in your browser, nothing uploaded.