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