W celu wykonania automatycznej aktualizacji pakietów w systemie Microsoft Windows należy uruchomić okno PowerShell z uprawnieniami administratora i wykonać polecenie:
winget upgrade --all
W przypadku problemów z aktualizacją pakietów (komunikat „Installer failed with exit code: 0x80070002 : Nie mona odnaleźć określonego pliku.” lub „Failed when searching source: winget An unexpected error occurred while executing the command: 0x8a15000f : Data required by the source is missing„) należy wykonać poniższe polecenia:
powershell -command Invoke-WebRequest -Uri https://cdn.winget.microsoft.com/cache/source.msix -OutFile source.msix
powershell -command Add-AppxPackage source.msix
winget install --id Microsoft.Git --disable-interactivity --accept-source-agreements --accept-package-agreements
winget upgrade --all