Reset-WinGetSource.md (2100B)
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: Reset-WinGetSource 8 --- 9 10 # Reset-WinGetSource 11 12 ## SYNOPSIS 13 Resets WinGet sources. 14 15 ## SYNTAX 16 17 ### DefaultSet (Default) 18 19 ``` 20 Reset-WinGetSource -Name <String> [<CommonParameters>] 21 ``` 22 23 ### OptionalSet 24 25 ``` 26 Reset-WinGetSource -All [<CommonParameters>] 27 ``` 28 29 ## DESCRIPTION 30 31 Resets a named WinGet source by removing the source configuration. You can reset all configured sources and add the default source configurations using the **All** switch parameter. 32 This command must be executed with administrator permissions. 33 34 ## EXAMPLES 35 36 ### Example 1: Reset the msstore source 37 38 ```powershell 39 Reset-WinGetSource -Name msstore 40 ``` 41 42 This example resets the configured source named 'msstore' by removing it. 43 44 ### Example 2: Reset all sources 45 46 ```powershell 47 Reset-WinGetSource -All 48 ``` 49 50 This example resets all configured sources and adds the default sources. 51 52 ## PARAMETERS 53 54 ### -All 55 56 Reset all sources and add the default sources. 57 58 ```yaml 59 Type: System.Management.Automation.SwitchParameter 60 Parameter Sets: (OptionalSet) 61 Aliases: 62 63 Required: False 64 Position: Named 65 Default value: None 66 Accept pipeline input: True (ByPropertyName) 67 Accept wildcard characters: False 68 ``` 69 70 ### -Name 71 72 The name of the source. 73 74 ```yaml 75 Type: System.String 76 Parameter Sets: (DefaultSet) 77 Aliases: 78 79 Required: True 80 Position: Named 81 Default value: None 82 Accept pipeline input: True (ByPropertyName, ByValue) 83 Accept wildcard characters: False 84 ``` 85 86 ### CommonParameters 87 88 This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, 89 -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, 90 -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see 91 [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). 92 93 ## INPUTS 94 95 ### System.String 96 97 ## OUTPUTS 98 99 ### System.Object 100 101 ## NOTES 102 103 ## RELATED LINKS 104 105 [Add-WinGetSource](Add-WinGetSource.md) 106 107 [Remove-WinGetSource](Remove-WinGetSource.md)