Disable Powershell Telemetry
Last Updated: 2024-08-07
Note
The Development Documentation is auto generated for every compilation of o9, meaning a part of it will always stay up-to-date. Developers do have the ability to add custom content, which won’t be updated automatically.
Description
This will create an Environment Variable called ‘POWERSHELL_TELEMETRY_OPTOUT’ with a value of ‘1’ which will tell Powershell 7 to not send Telemetry Data.
Preview Code
{
"Content": "Disable Powershell Telemetry",
"Description": "This will create an Environment Variable called 'POWERSHELL_TELEMETRY_OPTOUT' with a value of '1' which will tell Powershell 7 to not send Telemetry Data.",
"category": "Tweaks l",
"panel": "1",
"Order": "a009_",
"InvokeScript": [
"[Environment]::SetEnvironmentVariable('POWERSHELL_TELEMETRY_OPTOUT', '1', 'Machine')"
],
"UndoScript": [
"[Environment]::SetEnvironmentVariable('POWERSHELL_TELEMETRY_OPTOUT', '', 'Machine')"
],
"link": "https://o9-9.github.io/o9/dev/tweaks/Essential-Tweaks/Powershell7Tele"
}Invoke Script
[Environment]::SetEnvironmentVariable('POWERSHELL_TELEMETRY_OPTOUT', '1', 'Machine')Undo Script
[Environment]::SetEnvironmentVariable('POWERSHELL_TELEMETRY_OPTOUT', '', 'Machine')