POWERSHELL_TELEMETRY_OPTOUT and DOTNET_CLI_TELEMETRY_OPTOUT: setting them for all users

SecurityProUndo: YesUpdated View as Markdown

Short answer

Updated

PowerShell 7 and the .NET command line tools send usage data unless an environment variable tells them not to. This tweak sets POWERSHELL_TELEMETRY_OPTOUT and DOTNET_CLI_TELEMETRY_OPTOUT to 1 for the whole system. In the registry it sets POWERSHELL_TELEMETRY_OPTOUT to 1 under HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment, and 1 more value.

In the app
Opt Out of Developer Tool TelemetryPRO
Registry

HKLMSYSTEM\CurrentControlSet\Control\Session Manager\Environment

POWERSHELL_TELEMETRY_OPTOUTYour previous value1

What the switch writes. Your current value may differ. 1 more change below.

What it does

PowerShell 7 and the .NET command line tools send usage data unless an environment variable tells them not to. This tweak sets POWERSHELL_TELEMETRY_OPTOUT and DOTNET_CLI_TELEMETRY_OPTOUT to 1 for the whole system.

In the app the switch is called "Opt Out of Developer Tool Telemetry", described there as: Sets the PowerShell and .NET CLI telemetry opt-out for all users (sign out to apply).

When it helps, and when it hurts

When it helps

  • Privacy for anyone who has these tools installed.

When it hurts

  • Nothing. Sign out once so running programs see the new variables.

What it writes

Exactly what the switch changes, read from the app's source. Switching it off is what the app writes when you turn the tweak off again.

Registry values the switch writes.
Key and valueWith the tweakSwitching it off
HKLMSYSTEM\CurrentControlSet\Control\Session Manager\EnvironmentPOWERSHELL_TELEMETRY_OPTOUT1Your previous valueSaved before the change, or deleted if there was none.
HKLMSYSTEM\CurrentControlSet\Control\Session Manager\EnvironmentDOTNET_CLI_TELEMETRY_OPTOUT1Your previous valueSaved before the change, or deleted if there was none.

From the app's source (pack_extra.hpp), app 2.0.0, checked .

The same change by hand

You do not need the app for this one. These commands make the changes from the table above. Run them in a Command Prompt opened as administrator, and make a restore point first.

Make the change · CMD
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v "POWERSHELL_TELEMETRY_OPTOUT" /t REG_SZ /d "1" /f
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v "DOTNET_CLI_TELEMETRY_OPTOUT" /t REG_SZ /d "1" /f
See what it is set to now · CMD
reg query "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v "POWERSHELL_TELEMETRY_OPTOUT"

How to undo it

In the app: Yes

Switching it off puts back exactly what was there before, value for value.

Switch the tweak off in Frozen Tweaks. The app saved what each value was before the change and writes exactly that back, or removes the value if it did not exist.

Changing several settings at once? The app's Make a restore point button, on every plan, makes a Windows restore point before you start.

Verdict

Safe. It only matters if you use PowerShell 7 or the .NET tools.

Questions

What does the "Opt Out of Developer Tool Telemetry" tweak change in Windows?
In the registry it sets POWERSHELL_TELEMETRY_OPTOUT to 1 under HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment, and 1 more value. The full list is in the table on this page, read from the app's source.
Is "Opt Out of Developer Tool Telemetry" safe to switch on?
Safe. It only matters if you use PowerShell 7 or the .NET tools. The main cost: Nothing. Sign out once so running programs see the new variables.
How do I undo it?
Switch the tweak off in Frozen Tweaks. Switching it off puts back exactly what was there before, value for value.
Does it need a restart?
Yes, the change applies after signing out once.
Is "Opt Out of Developer Tool Telemetry" free in Frozen Tweaks?
It is part of Frozen Pro and Elite. You can also make the change by hand with the values on this page.

In the app

Switch
Opt Out of Developer Tool Telemetry
Category
Security
Plan
Pro
Undo
Yes

See it in the catalog

More tweak explainers

Written by

Founder of Frozen Tweaks, based in Hamburg, Germany. Publishes settings guides for competitive games on his YouTube channel, Frost LIVE.

In the app

Category
Security
Plan
Pro
Undo
Yes

See it in the catalog

Frozen Tweaks

Free for Windows 10 and 11

58 tweaks free, each with an undo switch. Never edits game files.

v2.0.0 · 6.4 MB · Windows 10 and 11, 64-bit · free account, no payment details

Or type frozentweaks.com on your PC.

The free Windows app for competitive games.

58 tweaks free, each with an undo switch. Never edits game files.

See all 177 tweaks

v2.0.0 · 6.4 MB · Windows 10 and 11, 64-bit · free account, no payment details

Frozen Tweaks runs on Windows. Send the link to your PC and download it there.

Or type frozentweaks.com on your PC.