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:
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)