diff --git a/config/preset.json b/config/preset.json index f19742d0..78083d15 100644 --- a/config/preset.json +++ b/config/preset.json @@ -14,7 +14,8 @@ "WPFTweaksDeleteTempFiles", "WPFTweaksEndTaskOnTaskbar", "WPFTweaksRestorePoint", - "WPFTweaksTeredo" + "WPFTweaksTeredo", + "WPFTweaksPowershell7Tele" ], "Minimal": [ "WPFTweaksConsumerFeatures", diff --git a/config/tweaks.json b/config/tweaks.json index b9f17027..3af206f7 100644 --- a/config/tweaks.json +++ b/config/tweaks.json @@ -2317,6 +2317,19 @@ "Invoke-WPFTweakPS7 -action \"PS5\"" ] }, + "WPFTweaksPowershell7Tele": { + "Content": "Disable Powershell 7 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": "Essential Tweaks", + "panel": "1", + "Order": "a009_", + "InvokeScript": [ + "[Environment]::SetEnvironmentVariable('POWERSHELL_TELEMETRY_OPTOUT', '1', 'Machine')" + ], + "UndoScript": [ + "[Environment]::SetEnvironmentVariable('POWERSHELL_TELEMETRY_OPTOUT', '', 'Machine')" + ] + }, "WPFTweaksStorage": { "Content": "Disable Storage Sense", "Description": "Storage Sense deletes temp files automatically.",