From 32b68c565c7523009b305847059dd0d5aa953d4d Mon Sep 17 00:00:00 2001 From: Angel Ramboi Date: Tue, 18 Aug 2015 09:04:24 +0200 Subject: [PATCH 1/2] Fixed NUL chars being added when adding telemetry domains to hosts file --- scripts/disable-telemetry.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/disable-telemetry.ps1 b/scripts/disable-telemetry.ps1 index ec264e2..a035932 100644 --- a/scripts/disable-telemetry.ps1 +++ b/scripts/disable-telemetry.ps1 @@ -1,6 +1,6 @@ # Description: # This script redirects telemetry related domains to your nowhere using the -# hosts file. Telemtry realted ips are blocked by Windows firewall. +# hosts file. Hard coded telemetry related IPs are blocked by Windows firewall. # Additionally telemetry is disallows via Group Policies. Import-Module -DisableNameChecking $PSScriptRoot\..\lib\reg-helper.psm1 @@ -14,7 +14,7 @@ foreach ($h in $hosts) { $ips += [ipaddress]$h } catch [System.InvalidCastException] { # can be redirected by hosts - echo "0.0.0.0 $h" >> "$env:systemroot\System32\drivers\etc\hosts" + echo "0.0.0.0 $h" | Out-File -Encoding ASCII -Append "$env:systemroot\System32\drivers\etc\hosts" } } From 39689d63fa46412c8fecc35bbdb618c7dc946585 Mon Sep 17 00:00:00 2001 From: Angel Ramboi Date: Tue, 18 Aug 2015 15:01:09 +0200 Subject: [PATCH 2/2] Remove additional installed apps that come with the upgrade from 8 --- scripts/remove-default-apps.ps1 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/remove-default-apps.ps1 b/scripts/remove-default-apps.ps1 index df9b455..9ed2732 100644 --- a/scripts/remove-default-apps.ps1 +++ b/scripts/remove-default-apps.ps1 @@ -34,6 +34,11 @@ $apps = @( "Microsoft.ZuneMusic" "Microsoft.ZuneVideo" "microsoft.windowscommunicationsapps" + "Microsoft.MinecraftUWP" + "Flipboard.Flipboard" + "9E2F88E3.Twitter" + "king.com.CandyCrushSaga" + "ShazamEntertainmentLtd.Shazam" ) foreach ($app in $apps) {