Browse Source

Merge branch 'aramboi/master'

close #13
pull/17/head
Alex Hirsch 9 years ago
parent
commit
8fffe00f47
  1. 4
      scripts/disable-telemetry.ps1
  2. 12
      scripts/remove-default-apps.ps1

4
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"
}
}

12
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
}

Loading…
Cancel
Save