Syntax
Description
TheGet-WinGetPackage cmdlet retrieves packages installed on the local system. You can filter packages by ID, name, moniker, tags, commands, or perform a general search across all fields using the Query parameter. Results can be piped to Update-WinGetPackage or Uninstall-WinGetPackage.
Parameters
The package identifier to match against. Supports wildcard matching based on the MatchOption parameter.Pipeline Input: true (by property name)
Parameter Set: FoundSet
Parameter Set: FoundSet
The package name to match against. Supports wildcard matching based on the MatchOption parameter.Pipeline Input: true (by property name)
Parameter Set: FoundSet
Parameter Set: FoundSet
The package moniker to match against. Monikers are short, memorable names for packages.Pipeline Input: true (by property name)
Parameter Set: FoundSet
Parameter Set: FoundSet
The name of the source where the package was installed from. If not specified, searches all configured sources.Pipeline Input: true (by property name)
Parameter Set: FoundSet
Parameter Set: FoundSet
One or more strings that match against all fields of a package. Use for general search.Pipeline Input: true (by property name, remaining arguments)
Parameter Set: FoundSet
Position: 0
Parameter Set: FoundSet
Position: 0
Filter packages by tag. Matches against the tags defined in the package manifest.Pipeline Input: true (by property name)
Parameter Set: FoundSet
Parameter Set: FoundSet
Filter packages by command. Matches against commands provided by the package.Pipeline Input: true (by property name)
Parameter Set: FoundSet
Parameter Set: FoundSet
The maximum number of results to return. Valid range: 1-1000.Pipeline Input: true (by property name)
Parameter Set: FoundSet
Parameter Set: FoundSet
Controls how package fields are matched. Valid values:
Parameter Set: FoundSet
Equals- Exact match (case sensitive)EqualsCaseInsensitive- Exact match (case insensitive)StartsWithCaseInsensitive- Starts with matchContainsCaseInsensitive- Contains match
Parameter Set: FoundSet
Outputs
An installed package on the local system.
Examples
Example 1: List All Installed Packages
Example 2: Get Package by Name
Example 3: Get Package by ID
Example 4: Get Packages with Updates
Example 5: Get Packages from Source
Example 6: General Search
Example 7: Limit Results
Example 8: Get and Update
Example 9: Get and Uninstall
Example 10: Format Output
Example 11: Export to CSV
Example 12: Count Installed Packages
Example 13: Filter by Publisher
Example 14: Update All Packages
Notes
- Alias:
gwgp - Default
MatchOptionisContainsCaseInsensitivefor search operations - Results can be piped to
Update-WinGetPackageorUninstall-WinGetPackage - Use the
IsUpdateAvailableproperty to check for updates - The cmdlet queries installed packages from all configured sources