Back to Winget Cli

Get-WinGetSetting

src/PowerShell/Help/Microsoft.WinGet.Client/Get-WinGetSetting.md

1.28.2402.2 KB
Original Source

Get-WinGetSetting

SYNOPSIS

Gets WinGet configuration settings.

SYNTAX

Get-WinGetSetting [-AsPlainText] [<CommonParameters>]

DESCRIPTION

This command gets the WinGet configuration settings. The settings include:

  • the schema
  • administrative settings
  • the location of the user settings file For more information about WinGet settings, see WinGet CLI Settings.

EXAMPLES

Example 1 - Display the WinGet configuration settings

powershell
Get-WinGetSetting
Output

Name              Value
----              -----
$schema           https://aka.ms/winget-settings-export.schema.json
userSettingsFile  C:\Users\user1\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\Local…
adminSettings     {[ProxyCommandLineOptions, False], [LocalArchiveMalwareScanOverride, False], [InstallerH…

Example 2 - Display the administrative settings in WinGet configuration

powershell
Get-WinGetSetting | Select-Object -ExpandProperty adminSettings
Output
Name                                      Value
----                                      -----
InstallerHashOverride                     False
ProxyCommandLineOptions                   False
BypassCertificatePinningForMicrosoftStore False
LocalArchiveMalwareScanOverride           False
LocalManifestFiles                        True

PARAMETERS

-AsPlainText

Output results as plain text

yaml
Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

System.Management.Automation.SwitchParameter

OUTPUTS

System.Object

NOTES

Get-WinGetUserSetting

Set-WinGetUserSetting