src/PowerShell/Help/Microsoft.WinGet.Client/Set-WinGetUserSetting.md
Sets configuration settings of the WinGet client for the current user.
Set-WinGetUserSetting -UserSettings <Hashtable> [-Merge] [<CommonParameters>]
This command sets configuration settings of the WinGet client for the current user. The user
settings file doesn't exist until you set a specific value. The file is stored in
$env:LOCALAPPDATA\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json.
For more information about WinGet settings, see
WinGet CLI Settings.
Set-WinGetUserSetting -UserSettings @{
visual = @{
progressBar = 'rainbow'
}
}
Sets the theme of the progress bar to rainbow.
Set-WinGetUserSetting -Merge -UserSettings @{
installBehavior = @{
preferences = @{
scope = 'user'
}
}
}
Appends the user scope preference setting to the existing WinGet settings configuration.
Set-WinGetUserSetting -UserSettings @{
visual = @{
progressBar = 'rainbow'
anonymizeDisplayedPaths = $true
}
}
By default, the command overwrites the current setting with the values provided. Use this parameter to append the new settings to the existing configuration.
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
A hashtable containing the key value pairs representing the WinGet settings.
Type: System.Collections.Hashtable
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
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.