π ~1 min read
Table of contents
Symptom & Impact
winget install fails on Windows Server 2019 with a package signature verification error, blocking automated provisioning of admin tools.
Environment & Reproduction
Occurs when winget client retrieves a manifest whose installer hash or signing certificate cannot be validated against the source.
winget install --id Microsoft.PowerShell
winget source list
Root Cause Analysis
The downloaded installer was modified, signed by an untrusted CA, or the source index is stale and references an outdated hash.
Quick Triage
Inspect winget version, sources, and recent logs to locate validation failure.
winget --info
winget source update
Step-by-Step Diagnosis
Pull diagnostic logs and re-test installation with verbose output.
winget install --id Microsoft.PowerShell --verbose-logs
Get-ChildItem $env:LOCALAPPDATAPackagesMicrosoft.DesktopAppInstaller_*LocalStateDiagOutputDir

Solution β Primary Fix
Reset the winget source, accept current source agreements, and reinstall with a trusted hash override only as a temporary measure.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.
winget source reset --force
winget source update
winget install --id Microsoft.PowerShell --accept-package-agreements --accept-source-agreements

Solution β Alternative Approaches
Download MSI directly from the vendor and install via msiexec with verified signature.
msiexec /i PowerShell-7.x-win-x64.msi /qn /norestart
Verification & Acceptance Criteria
winget shows package installed and signature trust is restored without warnings.
winget list Microsoft.PowerShell
pwsh -v
Rollback Plan
Uninstall the package and pin earlier known-good version if the new release is unstable.
winget uninstall Microsoft.PowerShell
Prevention & Hardening
Cache approved installers internally and enforce signature validation through software restriction policies.
Get-AuthenticodeSignature .PowerShell-7.x-win-x64.msi
Related Errors & Cross-Refs
Related: SmartScreen reputation block, expired code-signing certificates, and proxy SSL inspection breaking package downloads.
Related tutorial: View the step-by-step tutorial for Windows Server 2019.
View all Windows Server 2019 tutorials on the Tutorials Hub β
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
Microsoft Learn documentation for winget client, package manifests, and Windows app installer troubleshooting.
Need Expert Help?
If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today β we respond within one business day.