Commands for installing Certbot without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With winget
PowerShell
winget install --id EFF.Certbot -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id EFF.Certbot -e --silentwinget uninstall --id EFF.Certbot -e --silentBy installer
64-bit · EXE (NSIS) · All users · en-US
Silent install
certbot-beta-installer-win_amd64_signed.exe /SCustom folder
certbot-beta-installer-win_amd64_signed.exe /S /D=C:\Apps\certbotPowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-certbot.ps1
$url = 'https://github.com/certbot/certbot/releases/download/v2.9.0/certbot-beta-installer-win_amd64_signed.exe'
$sha256 = 'DA2D0647A0FE6B16A8E64DA09C210FBB382AEB93908322B299393B28846A419C'
$file = Join-Path $env:TEMP 'certbot-beta-installer-win_amd64_signed.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/S' -Wait