Created
January 31, 2021 17:32
-
-
Save jhochwald/ac45f612190a40028a3dc32217dca321 to your computer and use it in GitHub Desktop.
Disable the .NET Telemetry on production servers and critical workstations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Disable the .NET Telemetry on production servers and critical workstations | |
[Environment]::SetEnvironmentVariable('DOTNET_CLI_TELEMETRY_OPTOUT', '1', 'Machine') | |
[Environment]::SetEnvironmentVariable('MLDOTNET_CLI_TELEMETRY_OPTOUT', '1', 'Machine') | |
# Tweak the 1st run experience | |
[Environment]::SetEnvironmentVariable('DOTNET_SKIP_FIRST_TIME_EXPERIENCE', '1', 'Machine') |
I get that Microsoft wants to have some telemetry for .NET! And this is nothing bad, but I don't want to send any telemetry data from production servers or workstations with any critical workloads.
I have it enabled on my development systems! I'm not paranoid ;-)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you don't have admin access (no elevated PowerShell), you might want to use this in you profile and/or Startscript for the .NET Application:
Both methods work on Windows PowerShell and PowerShell Core (On Windows, MacOS, and Linux)!