Back to Winget Cli

Disable-WinGetSetting

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

1.28.2401.6 KB
Original Source

Disable-WinGetSetting

SYNOPSIS

Disables an administrative setting.

SYNTAX

Disable-WinGetSetting [-Name] <String> [<CommonParameters>]

DESCRIPTION

This command disables an administrative setting. The command must be run from an elevated session using the Run as Administrator option.

This command support the following administrative settings:

  • LocalManifestFiles
  • BypassCertificatePinningForMicrosoftStore
  • InstallerHashOverride
  • LocalArchiveMalwareScanOverride
  • ProxyCommandLineOptions

Administrative settings are disabled by default. Administrative settings can also be managed using Group Policy objects.

EXAMPLES

Example 1: Disable the use of local manifest files

powershell
Disable-WinGetSetting -Name LocalManifestFiles

This example shows how to disable the use of local manifest files.

PARAMETERS

-Name

The name of the WinGet administrative setting.

yaml
Type: System.String
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
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.String

OUTPUTS

System.Object

NOTES

Get-WinGetSetting

Set-WinGetUserSetting