Disable WinGet telemetry
- Single actionThis page belongs to a script, containing basic changes to achieve a task.
- Windows onlyThis script improves your privacy on Windows
- Impact: MinimumSystem Functionality Loss Risk: Low
This action improves privacy with minimal impact when you run the recommended script. - Batch (batchfile)These changes use Windows system commands to update your settings.
- Fully reversible
You can fully restore this action (revert back to the original behavior) using this website.
The restore/revert methods provided here can help you fix issues.
Overview
This script disables data collection in WinGet.
WinGet is the command line tool for the Windows Package Manager 1. It allows users to discover, install, upgrade, remove, and configure applications. 1
WinGet collects and sends data to Microsoft 2 3. This data includes who you are 2, how you use the software 2 3 4 and other system-related diagnostics and error data 4. This telemetry can reveal details about your identity and software usage patterns 2 3.
By disabling WinGet telemetry, you keep gain control over your privacy by preventing our application management activities from being shared with Microsoft.
This action may also slightly improve system performance by reducing background processes that collect and transmit data.
Technical Details
This script sets the telemetry.disable
configuration to true
in WinGet settings 3.
When enabled, this setting prevents WinGet from writing any Event Tracing for Windows (ETW) events
that would normally be sent to Microsoft 3.
ETW is the Windows system that collects information about your computer activity 5.
While disabling telemetry stops data collection by the WinGet client itself, be aware that other
features in the software may still collect data 2.
Sources
- Use the winget tool to install and manage applications. Microsoft Learn. learn.microsoft.com. (2023).
Original: https://learn.microsoft.com/en-us/windows/package-manager/winget
Archived: https://web.archive.org/web/20231229091538/https://learn.microsoft.com/en-us/windows/package-manager/winget/ - winget-cli/PRIVACY.md at master · privacysexy-forks/winget-cli. github.com. (2025).
Original: https://github.com/privacysexy-forks/winget-cli/blob/master/PRIVACY.md
Archived: https://web.archive.org/web/20250415142429/https://github.com/privacysexy-forks/winget-cli/blob/master/PRIVACY.md - winget-cli/doc/Settings.md at master · privacysexy-forks/winget-cli. github.com. (2025).
Original: https://github.com/privacysexy-forks/winget-cli/blob/master/doc/Settings.md
Archived: https://web.archive.org/web/20250415142419/https://github.com/privacysexy-forks/winget-cli/blob/master/doc/Settings.md#telemetry - winget-cli/README.md at master · privacysexy-forks/winget-cli. github.com. (2025).
Original: https://github.com/privacysexy-forks/winget-cli/blob/master/README.md
Archived: https://web.archive.org/web/20250415142329/https://github.com/privacysexy-forks/winget-cli/blob/master/README.md#datatelemetry - Event Tracing for Windows (ETW) - Windows drivers. Microsoft Learn. learn.microsoft.com. (2025).
Original: https://learn.microsoft.com/en-us/windows-hardware/drivers/devtest/event-tracing-for-windows--etw-
Archived: https://web.archive.org/web/20250415232421/https://learn.microsoft.com/en-us/windows-hardware/drivers/devtest/event-tracing-for-windows--etw-
Apply Now
Choose one of three ways to apply:
Download script
Download and run the script directly- No app needed
- Offline usage
- Easy-to-apply
- Free
- Open-source
Help
How to apply or restore "Disable WinGet telemetry" using script
- ≈ 2 min to complete
- Tools: Web Browser
- Difficulty: Simple
- ≈ 5 instructions
- 1
Download
Download the script file by clicking on thebutton above.
Use button above to restore changes. - 2
Keep the file
If warned by your browser, keep the file. - 3
Open
Open the downloaded file. - 4
Exit
Once it's done, press any key to exit the window. - 5
Restart
Restart your computer for all changes to take effect.
Apply with privacy.sexy
Guided, automated application with safety checks- Recommended for most users
- Includes safety checks
- Free
- Open-source
- Popular
- Offline/Online usage
Help
How to apply or restore "Disable WinGet telemetry" using privacy.sexy
- ≈ 3 min to complete
- Tools: privacy.sexy
- Difficulty: Simple
- ≈ 4 instructions
- 2
Choose script
- Search for the script name: Disable WinGet telemetry
- Check the script by clicking on the checkbox.
- 3
Run
Click on ▶️ Run button at the bottom of the page.This button only appears on desktop version (recommended). On browser, use 💾 Save button.
- Apply
- Revert
:: Set Microsoft Store (packaged) WinGet setting: telemetry.disable
:: Set JSON property 'telemetry.disable' in %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
PowerShell -ExecutionPolicy Unrestricted -Command "$rawJsonFilePath = "^""%LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json"^""; $propertyKey = 'telemetry.disable'; $desiredValue = $true; $jsonFilePath = [System.Environment]::ExpandEnvironmentVariables($rawJsonFilePath); if (!(Test-Path $jsonFilePath -PathType Leaf)) { Write-Host "^""Skipping, no updates. Settings file was not at `"^""$jsonFilePath`"^""."^""; exit 0; }; try { $fileContent = Get-Content $jsonFilePath -ErrorAction Stop; } catch { throw "^""Error, failed to read the settings file: `"^""$jsonFilePath`"^"". Error: $_"^""; }; if ([string]::IsNullOrWhiteSpace($fileContent)) { Write-Host "^""Settings file is empty. Treating it as default empty JSON object."^""; $fileContent = "^""{}"^""; }; try { $json = $fileContent | ConvertFrom-Json; } catch { throw "^""Error, invalid JSON format in the settings file: `"^""$jsonFilePath`"^"". Error: $_"^""; }; $currentValue = $json.$propertyKey; if ($currentValue -eq $desiredValue) { Write-Host "^""Skipping, `"^""$propertyKey`"^"" is already configured as `"^""$desiredValue`"^""."^""; exit 0; }; $json | Add-Member -Type NoteProperty -Name $propertyKey -Value $desiredValue -Force; $json | ConvertTo-Json | Set-Content $jsonFilePath; Write-Host "^""Successfully applied the setting to the file: `"^""$jsonFilePath`"^""."^"""
:: Set standalone (non-packaged) WinGet setting: telemetry.disable
:: Set JSON property 'telemetry.disable' in %LOCALAPPDATA%\Microsoft\WinGet\Settings\settings.json
PowerShell -ExecutionPolicy Unrestricted -Command "$rawJsonFilePath = "^""%LOCALAPPDATA%\Microsoft\WinGet\Settings\settings.json"^""; $propertyKey = 'telemetry.disable'; $desiredValue = $true; $jsonFilePath = [System.Environment]::ExpandEnvironmentVariables($rawJsonFilePath); if (!(Test-Path $jsonFilePath -PathType Leaf)) { Write-Host "^""Skipping, no updates. Settings file was not at `"^""$jsonFilePath`"^""."^""; exit 0; }; try { $fileContent = Get-Content $jsonFilePath -ErrorAction Stop; } catch { throw "^""Error, failed to read the settings file: `"^""$jsonFilePath`"^"". Error: $_"^""; }; if ([string]::IsNullOrWhiteSpace($fileContent)) { Write-Host "^""Settings file is empty. Treating it as default empty JSON object."^""; $fileContent = "^""{}"^""; }; try { $json = $fileContent | ConvertFrom-Json; } catch { throw "^""Error, invalid JSON format in the settings file: `"^""$jsonFilePath`"^"". Error: $_"^""; }; $currentValue = $json.$propertyKey; if ($currentValue -eq $desiredValue) { Write-Host "^""Skipping, `"^""$propertyKey`"^"" is already configured as `"^""$desiredValue`"^""."^""; exit 0; }; $json | Add-Member -Type NoteProperty -Name $propertyKey -Value $desiredValue -Force; $json | ConvertTo-Json | Set-Content $jsonFilePath; Write-Host "^""Successfully applied the setting to the file: `"^""$jsonFilePath`"^""."^"""
Ijo6IFJlc2V0IE1pY3Jvc29mdCBTdG9yZSAocGFja2FnZWQpIFdpbkdldCBzZXR0aW5nOiB0ZWxlbWV0cnkuZGlzYWJsZVxuOjogRGVsZXRlIEpTT04gcHJvcGVydHkgJ3RlbGVtZXRyeS5kaXNhYmxlJyBmcm9tICVMT0NBTEFQUERBVEElXFxQYWNrYWdlc1xcTWljcm9zb2Z0LkRlc2t0b3BBcHBJbnN0YWxsZXJfOHdla3liM2Q4YmJ3ZVxcTG9jYWxTdGF0ZVxcc2V0dGluZ3MuanNvblxuUG93ZXJTaGVsbCAtRXhlY3V0aW9uUG9saWN5IFVucmVzdHJpY3RlZCAtQ29tbWFuZCBcIiRyYXdKc29uRmlsZVBhdGggPSBcIl5cIlwiJUxPQ0FMQVBQREFUQSVcXFBhY2thZ2VzXFxNaWNyb3NvZnQuRGVza3RvcEFwcEluc3RhbGxlcl84d2VreWIzZDhiYndlXFxMb2NhbFN0YXRlXFxzZXR0aW5ncy5qc29uXCJeXCJcIjsgJHByb3BlcnR5S2V5ID0gJ3RlbGVtZXRyeS5kaXNhYmxlJzsgJHVuZGVzaXJlZFZhbHVlID0gJHRydWU7ICRqc29uRmlsZVBhdGggPSBbU3lzdGVtLkVudmlyb25tZW50XTo6RXhwYW5kRW52aXJvbm1lbnRWYXJpYWJsZXMoJHJhd0pzb25GaWxlUGF0aCk7IGlmICghKFRlc3QtUGF0aCAkanNvbkZpbGVQYXRoIC1QYXRoVHlwZSBMZWFmKSkgeyBXcml0ZS1Ib3N0IFwiXlwiXCJTa2lw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ZpbGVQYXRoYFwiXlwiXCIuIEVycm9yOiAkX1wiXlwiXCI7IH07IGlmICghJGpzb24uUFNPYmplY3QuUHJvcGVydGllc1skcHJvcGVydHlLZXldKSB7IFdyaXRlLUhvc3QgXCJeXCJcIlNraXBwaW5nLCBubyBuZWVkIHRvIHJldmVydCBiZWNhdXNlIHNldHRpbmcgYFwiXlwiXCIkcHJvcGVydHlLZXlgXCJeXCJcIiBkb2VzIG5vdCBleGlzdC5cIl5cIlwiOyBleGl0IDA7IH07IGlmICgkanNvbi4kcHJvcGVydHlLZXkgLW5lICR1bmRlc2lyZWRWYWx1ZSkgeyBXcml0ZS1Ib3N0IFwiXlwiXCJTa2lwcGluZywgc2V0dGluZyAoYFwiXlwiXCIkcHJvcGVydHlLZXlgXCJeXCJcIikgaGFzIGRpZmZlcmVudCBjb25maWd1cmF0aW9uIHRoYW4gYFwiXlwiXCIkdW5kZXNpcmVkVmFsdWVgXCJeXCJcIjogYFwiXlwiXCIkKCRqc29uLiRwcm9wZXJ0eUtleSlgXCJeXCJcIi5cIl5cIlwiOyBleGl0IDA7IH07ICRqc29uLlBTT2JqZWN0LlByb3BlcnRpZXMuUmVtb3ZlKCRwcm9wZXJ0eUtleSk7ICRqc29uIHwgQ29udmVydFRvLUpzb24gfCBTZXQtQ29udGVudCAkanNvbkZpbGVQYXRoOyBXcml0ZS1Ib3N0IFwiXlwiXCJTdWNjZXNzZnVsbHkgcmV2ZXJ0ZWQgdGhlIHNldHRpbmcgZnJvbSBmaWxlOiBgXCJeXCJcIiRqc29uRmlsZVBhdGhgXCJeXCJcIi5cIl5cIlwiXCIi
Help
How to apply or restore "Disable WinGet telemetry" using commands
- ≈ 2 min to complete
- Tools: Command Prompt
- Difficulty: Medium
- ≈ 3 instructions
- 1
Open Command Prompt
Open Command Prompt as Administrator. - 2
Copy code
Copy the code: - 3
Paste & run
Paste the commands into Command Prompt and press Enter to run.Some changes require a system restart to take effect
Similar Guides
Wider Goal
The guide below includes this guide to achieve a wider goal.See other more general settings that includes this one as one of its actions.These plans combine multiple privacy settings, including this one, for stronger protection.
Same Goal
Other guides in Configure programs See settings that are in the same category as this guide.Using other actions in the same category may help you achieve your goal better.
See all 14 guides
About the Creators
These people have authored this documentation and written its scripts:
Reviewed By
This guide has undergone comprehensive auditing and peer review:Expert review by undergroundwires
- Verified technical accuracy and editorial standards
- Assessed system impact and user privacy risks
- Audited and verified using automated security tests
Public review by large community
- Privacy enthusiasts and professionals peer-reviewed
- Millions of end-users tested across different environments
- Audited and verified using third-party security software
History
We continually monitor our guides, their impact and other potential privacy options. We update our guides when new information becomes available. On every update, we publicly store who made the change, what has been changed, why the change was made and when the change was made.