Skip to content

Instantly share code, notes, and snippets.

@eabase
Last active September 5, 2025 22:38
Show Gist options
  • Save eabase/dc409e95c0c3bd3168711a914a1b4c02 to your computer and use it in GitHub Desktop.
Save eabase/dc409e95c0c3bd3168711a914a1b4c02 to your computer and use it in GitHub Desktop.
List of Windows-11 Telemetry that can be disabled using environment variables
Tool/Service Environment Variable Effect
PowerShell POWERSHELL_TELEMETRY_OPTOUT=1 Disables telemetry sent to Application Insights
.NET CLI / SDK DOTNET_CLI_TELEMETRY_OPTOUT=1 Prevents sending usage data (commands/ errors/ etc.)
VCPKG VCPKG_DISABLE_METRICS=1 Disables anonymous usage metrics
Azure CLI AZURE_CORE_COLLECT_TELEMETRY=0 Stops Azure CLI from sending usage data
Visual Studio Code VSCODE_TELEMETRY_DISABLE=1 Disables telemetry in VS Code
Visual Studio Code VSCODE_CRASH_REPORTER_DISABLE=1 Disables crash reporting
GitHub CLI GH_NO_TELEMETRY=1 Prevents GitHub CLI from sending telemetry
Application Insights SDK APPLICATIONINSIGHTS_NO_DIAGNOSTIC_CHANNEL=1 Disables diagnostic channel used for telemetry
Windows Terminal N/A No known environment variable; telemetry controlled via settings.json
Windows Feedback Hub N/A No environment variable; disable via Group Policy or uninstall
@eabase
Copy link
Author

eabase commented Sep 5, 2025

Apparently also GO language has some kind of telemetry built-in:

go telemetry off
go env
  • go env GOTELEMETRY reports the telemetry mode.
  • go env GOTELEMETRYDIR reports the directory holding telemetry configuration and data.

And/or:

  • GoTo: C:\Users<user>\AppData\Roaming\go\telemetry\
  • Create a file there named "mode" (without an extension!)
  • Inside the file, write just one word: "off"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment