winget: Basic usage

Hi,

here are some winget basics

Searching for a package at Microsoft store

PS D:\>  winget search -q deutsch --source=msstore
Name                                    ID           Version
------------------------------------------------------------
...
Deutsch Local Experience Pack           9P6CT0SLW589 Unknown
...

Installing a package and open logfile

PS D:\>  winget install --id 9P6CT0SLW589 --source=msstore --verbose-logs --open-logs
Installation oder Upgrade des Microsoft Store-Pakets ist fehlgeschlagen. Fehlercode: 0x80190003

If an error occured take a look at the winget return codes.

If the error is not listed take a look at the Microsoft store logs (Application and Service Logs/Microsoft/Store)

PS D:\>  Get-WinEvent -ProviderName Microsoft-Windows-Store | ?{$_.LevelDisplayName -ne "Informationen" }

If you call winget with –verbose-logs the logs can be found at C:\Users\\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir.

Michael

Leave a Reply Cancel reply