Back to Winget Cli

WinGetPackage

src/PowerShell/Help/Microsoft.WinGet.DSC/WinGetPackage.md

1.28.2401.4 KB
Original Source

WinGetPackage

SYNOPSIS

Configures packages through WinGet.

DESCRIPTION

Allows WinGet package state to be configured.

PARAMETERS

ParameterAttributeDataTypeDescriptionAllowed Values
IdKey, MandatoryStringThe identifier of a WinGet package.Use Find-WinGetPackage to search for packages
SourceKeyStringThe name of the source that provides the package. If not provided, all configured sources will be searched for the Id.Use the WinGetSources resource to configure a source or Get-WinGetSource to discover the default sources
VersionOptionalStringThe version of the package.See the AvailableVersions property of output from Find-WinGetPackage
EnsureOptionalWinGetEnsureWhether the package should be installed (Present) or not (Absent).Present (default), Absent
MatchOptionOptionalWinGetMatchOptionThe method used to compare the Id parameter with available packages.Equals, EqualsCaseInsensitive (default), StartsWithCaseInsensitive, ContainsCaseInsensitive
UseLatestOptionalBooleanWhether the package should updated to the latest available version. If true, takes precedence over Version.True, False (default)
InstallModeOptionalWinGetInstallModeThe interactivity level requested when installing.Default, Silent (default), Interactive