From 31f1bad92add8839de5ad2ca2ed8a7beba2ea6cc Mon Sep 17 00:00:00 2001 From: Alex Hirsch Date: Tue, 4 Aug 2015 13:53:28 +0200 Subject: [PATCH] merge disable-telemetry.reg into disable-telemetry.ps1 --- scripts/disable-telemetry.ps1 | 14 +++++++++++++- scripts/disable-telemetry.reg | Bin 290 -> 0 bytes 2 files changed, 13 insertions(+), 1 deletion(-) delete mode 100644 scripts/disable-telemetry.reg 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 b33e1ea9662d599ade591ff43a872136c9943f56..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 290 zcmYk1+X{kU5QOJC=pDodh;F(Gx(F+Zj+i8oAz~InDf|Y~%U9p81hFj3%Nl##&Q7 zw1qaPk@jda1q$K)hS{<4&fb*FxDYX8k%6zsD?dc^|Nk3lq69u+x1GK-nS$Hz&do