Exports specific details for a source to JSON output..
Syntax
WINGET source export [-n, --name] \name options
Key
-n,--name The name to identify the source by.
--disable-interactivity Disable interactive prompts.
--logs,--open-logs Open the default logs location.
--proxy Set a proxy to use for this execution.
--no-proxy Disable the use of proxy for this execution.
--nowarn,--ignore-warnings Suppresses warning outputs.
--verbose, --verbose-logs Used to override the logging setting and create a verbose log.
--wait Prompt the user to press any key before exiting.
-?, --help Get additional help on this command.
--name and name are required.
The export sub-command exports the specific details for a source to JSON output.
This is useful for configuring Group Policy for source management.
Remove a source:
C:\> WINGET source export winget
Output:
{"Arg":"https://cdn.winget.microsoft.com/cache","Data":"Microsoft.Winget.Source_8wekyb3d8bbwe",
"Explicit":false,"Identifier":"Microsoft.Winget.Source_8wekyb3d8bbwe","Name":"winget",
"TrustLevel":["Trusted","StoreOrigin"],"Type":"Microsoft.PreIndexed.Package"}
“The World Bank was supposed to make loans for what they call international development. “Development” was their euphemism for dependency on U.S. exports and finance” ~ Michael Hudson
WINGET - Discover, install, upgrade, remove and configure applications on Windows computers.
MSIEXEC - Microsoft Windows Installer.
WUAUCLT - Windows Update.