# Search by nameFind-WinGetPackage -Name "Visual Studio Code"# Search by IDFind-WinGetPackage -Id Microsoft.VisualStudioCode# Search with queryFind-WinGetPackage -Query "python"
# List all installed packagesGet-WinGetPackage# Find specific installed packageGet-WinGetPackage -Name "PowerToys"# List from specific sourceGet-WinGetPackage -Source winget
The configuration module enables declarative package management:
# Load a configuration file$config = Get-WinGetConfiguration -File "C:\config.yaml"# Get details about the configurationGet-WinGetConfigurationDetails -Set $config# Apply the configurationInvoke-WinGetConfiguration -Set $config -AcceptConfigurationAgreements
# Find and installFind-WinGetPackage -Id Microsoft.PowerToys | Install-WinGetPackage# Get and updateGet-WinGetPackage -Id Microsoft.PowerToys | Update-WinGetPackage# Find and examineFind-WinGetPackage -Query "python" | Select-Object Name, Id, Version
# See what would be installedInstall-WinGetPackage -Id Microsoft.PowerToys -WhatIf# Prompt for confirmationUninstall-WinGetPackage -Id Microsoft.PowerToys -Confirm
# Search in specific sourceFind-WinGetPackage -Id Microsoft.PowerToys -Source winget# Install from specific sourceInstall-WinGetPackage -Id Microsoft.PowerToys -Source msstore
# Get help for a cmdletGet-Help Install-WinGetPackage# Get detailed help with examplesGet-Help Install-WinGetPackage -Detailed# Get all examplesGet-Help Install-WinGetPackage -Examples