Disable-WinGetSetting.md (1853B)
1 --- 2 external help file: Microsoft.WinGet.Client.Cmdlets.dll-Help.xml 3 Module Name: Microsoft.WinGet.Client 4 ms.date: 08/01/2024 5 online version: 6 schema: 2.0.0 7 title: Disable-WinGetSetting 8 --- 9 10 # Disable-WinGetSetting 11 12 ## SYNOPSIS 13 Disables an administrative setting. 14 15 ## SYNTAX 16 17 ``` 18 Disable-WinGetSetting [-Name] <String> [<CommonParameters>] 19 ``` 20 21 ## DESCRIPTION 22 23 This command disables an administrative setting. The command must be run from an elevated session 24 using the **Run as Administrator** option. 25 26 This command support the following administrative settings: 27 28 - LocalManifestFiles 29 - BypassCertificatePinningForMicrosoftStore 30 - InstallerHashOverride 31 - LocalArchiveMalwareScanOverride 32 - ProxyCommandLineOptions 33 34 Administrative settings are disabled by default. Administrative settings can also be managed using 35 Group Policy objects. 36 37 ## EXAMPLES 38 39 ### Example 1: Disable the use of local manifest files 40 41 ```powershell 42 Disable-WinGetSetting -Name LocalManifestFiles 43 ``` 44 45 This example shows how to disable the use of local manifest files. 46 47 ## PARAMETERS 48 49 ### -Name 50 51 The name of the WinGet administrative setting. 52 53 ```yaml 54 Type: System.String 55 Parameter Sets: (All) 56 Aliases: 57 58 Required: True 59 Position: 0 60 Default value: None 61 Accept pipeline input: True (ByPropertyName, ByValue) 62 Accept wildcard characters: False 63 ``` 64 65 ### CommonParameters 66 67 This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, 68 -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, 69 -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see 70 [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). 71 72 ## INPUTS 73 74 ### System.String 75 76 ## OUTPUTS 77 78 ### System.Object 79 80 ## NOTES 81 82 ## RELATED LINKS 83 84 [Get-WinGetSetting](Get-WinGetSetting.md) 85 86 [Set-WinGetUserSetting](Set-WinGetUserSetting.md)