Keep your PC safe and updated with “winget”

Windows now has a powerful package manager called winget, which makes it super easy to update all your installed applications with just one click โ€“ just like on Linux!

Iโ€™ve created a shortcut on my desktop that automatically updates everything silently:

C:\Users\knuds\AppData\Local\Microsoft\WindowsApps\winget.exe upgrade --all --accept-source-agreements --accept-package-agreements --silent

๐Ÿ”’ I run the shortcut as administrator, so it installs updates without asking for permission.

Hereโ€™s how it looks:
My shortcut and settings


Exclude programs from updating โ€“ like Microsoft Office Enterprise

If your company manages software like Microsoft Office, you donโ€™t want winget to update it. Luckily, you can โ€œpinโ€ apps to prevent updates.

๐Ÿ“Œ To pin (lock) Office so it won’t update:

winget pin add --id Microsoft.Office

๐Ÿ”“ To unpin (unlock) it again:

winget pin remove --id Microsoft.Office

To see all pinned apps:

winget pin list

Final Tips

โœ… Run Windows Update regularly
โœ… Use winget upgrade --all to keep your apps secure
โœ… Use pinning to protect company-managed software

With this simple shortcut and a few commands, youโ€™ll keep your system secure and fully up to date โ€“ with no effort.

You can also use winget to install programs ;O)