diff --git a/scripts/disable-telemetry.ps1 b/scripts/disable-telemetry.ps1 index 17a13b4..065e7d6 100644 --- a/scripts/disable-telemetry.ps1 +++ b/scripts/disable-telemetry.ps1 @@ -2,6 +2,7 @@ # This script redirects telemetry related domains to your nowhere using the # hosts file. +echo "Adding telemetry routes to hosts file" $hosts = "0.0.0.0 vortex.data.microsoft.com 0.0.0.0 vortex-win.data.microsoft.com 0.0.0.0 telecommand.telemetry.microsoft.com @@ -54,5 +55,16 @@ $hosts = "0.0.0.0 vortex.data.microsoft.com 0.0.0.0 feedback.windows.com 0.0.0.0 feedback.microsoft-hohm.com 0.0.0.0 feedback.search.microsoft.com" +echo $hosts >> "$env:systemroot\System32\drivers\etc\hosts" -echo $hosts >> "$env:systemroot\System32\drivers\etc\hosts" \ No newline at end of file +echo "Disabling telemetry via Group Policies" +$reg = @" +Windows Registry Editor Version 5.00 + +[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DataCollection] +"AllowTelemetry"=dword:00000000 +"@ +$regfile = "$env:windir\Temp\registry.reg" +$reg | Out-File $regfile +regedit /s $regfile +rm $regfile \ No newline at end of file diff --git a/scripts/disable-telemetry.reg b/scripts/disable-telemetry.reg deleted file mode 100644 index b33e1ea..0000000 Binary files a/scripts/disable-telemetry.reg and /dev/null differ