Files
Scripting/Powershell/PowerShell-collection/Misc/DisableDotNetTelemetry.ps1
DistractADD cfddd4fad2 Added Files
2021-07-06 13:16:46 +10:00

7 lines
372 B
PowerShell

# 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')