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" } } diff --git a/scripts/remove-default-apps.ps1 b/scripts/remove-default-apps.ps1 index 8c0f6ed..c795383 100644 --- a/scripts/remove-default-apps.ps1 +++ b/scripts/remove-default-apps.ps1 @@ -3,6 +3,7 @@ # to remove certain Apps comment out the corresponding lines below. $apps = @( + # default Windows 10 apps "Microsoft.3DBuilder" "Microsoft.Appconnector" "Microsoft.BingFinance" @@ -29,12 +30,19 @@ $apps = @( "Microsoft.ZuneMusic" "Microsoft.ZuneVideo" "microsoft.windowscommunicationsapps" + + # apps from Windows 8 upgrade + "9E2F88E3.Twitter" + "Flipboard.Flipboard" + "Microsoft.MinecraftUWP" + "ShazamEntertainmentLtd.Shazam" + "king.com.CandyCrushSaga" ) foreach ($app in $apps) { - Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage + Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage -ErrorAction SilentlyContinue Get-AppXProvisionedPackage -Online | where DisplayName -EQ $app | - Remove-AppxProvisionedPackage -Online + Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue }