src/PowerShell/Help/Microsoft.WinGet.Client/Disable-WinGetSetting.md
Disables an administrative setting.
Disable-WinGetSetting [-Name] <String> [<CommonParameters>]
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:
Administrative settings are disabled by default. Administrative settings can also be managed using Group Policy objects.
Disable-WinGetSetting -Name LocalManifestFiles
This example shows how to disable the use of local manifest files.
The name of the WinGet administrative setting.
Type: System.String
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
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.