wingetsilent-installtimotutorial
2FAGuard

How to Install 2FAGuard Silently with winget on Windows

Install 2FAGuard silently with winget — one-line command for unattended deployments, plus upgrade and uninstall options. MIT licensed.

· 3 min read · updated May 29, 2026

Need 2FAGuard on a server, golden image, or developer workstation without anyone watching the screen? winget's silent install handles it in seconds. Here's the recipe and the gotchas.

Skip to the command

Open Terminal as Administrator and run:

winget install --id timokoessler.2FAGuard -e --silent --accept-package-agreements --accept-source-agreements

2FAGuard: A modern and secure Windows app for managing your 2FA authentication codes

Typical install time: 10–60 seconds depending on installer size.

What gets installed

Field Value
Package ID timokoessler.2FAGuard
Publisher Timo Kössler
Installer type Inno Setup
License MIT
Latest version 1.8.0
Minimum OS 10.0.17763.0
Homepage 2faguard.app

Inno installers respond to /VERYSILENT for a totally hidden install or /SILENT for a minimal progress dialog.

Per-user install (no admin)

If you don't have admin rights, try per-user scope:

winget install --id timokoessler.2FAGuard -e --scope user --silent

If the manifest doesn't have a user-scope installer, winget falls back with an error — in that case you genuinely need admin or use the Access denied fix.

Specify a version

To pin a known-good version (useful for reproducible CI / team standardisation):

winget install --id timokoessler.2FAGuard -e --version 1.8.0 --silent

List available versions:

winget show --id timokoessler.2FAGuard --versions

Override silent flags

If winget's --silent doesn't fully suppress the installer's UI, pass native flags via --override:

winget install --id timokoessler.2FAGuard -e --override "/VERYSILENT /SUPPRESSMSGBOXES /NORESTART"

These are the Inno Setup-native silent switches the installer recognises.

Verify after install

winget list --id timokoessler.2FAGuard

If the version is shown, the install succeeded.

Upgrade silently

winget upgrade --id timokoessler.2FAGuard -e --silent --accept-package-agreements --accept-source-agreements

Or upgrade as part of a bulk weekly cron — see How to update all Windows apps.

Uninstall silently

winget uninstall --id timokoessler.2FAGuard --silent --disable-interactivity

Detailed guide: How to uninstall Windows apps with winget.

In a provisioning script

PowerShell snippet for unattended Windows setup:

$apps = @(
  "timokoessler.2FAGuard"
  # add more packages here
)

foreach ($id in $apps) {
  winget install --id $id -e --silent `
    --accept-package-agreements --accept-source-agreements
}

Wrap in Task Scheduler for one-shot machine provisioning. See Fresh Windows 11 setup.

Common errors

"2FAGuard is already installed" — winget detected the existing install. To force-reinstall over the existing copy:

winget install --id timokoessler.2FAGuard -e --silent --force

"Installer hash does not match" — Timo Kössler published a new version before the winget manifest updated. Wait ~24 hours or pass --force. See hash mismatch fix.

"Access denied" / 0x80070005 — run Terminal as Administrator. See Access denied fix.

0x80073D02 — package in use — 2FAGuard is currently running. Close it then retry. See package in use fix.

See also

Continue reading