Browse Source
Block telemetry scheduled tasks (#310 )
* Block telemetry scheduled tasks
* Fix typo
pull/286/merge
Teselka
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
13 additions and
0 deletions
scripts/block-telemetry.ps1
@ -240,3 +240,16 @@ $ips = @(
Remove-NetFirewallRule -DisplayName " Block Telemetry IPs " -ErrorAction SilentlyContinue
Remove-NetFirewallRule -DisplayName " Block Telemetry IPs " -ErrorAction SilentlyContinue
New-NetFirewallRule -DisplayName " Block Telemetry IPs " -Direction Outbound `
New-NetFirewallRule -DisplayName " Block Telemetry IPs " -Direction Outbound `
-Action Block -RemoteAddress ( [string[]] $ips )
-Action Block -RemoteAddress ( [string[]] $ips )
# Block scheduled telemetry tasks
# See reference: https://answers.microsoft.com/en-us/windows/forum/windows_10-performance/permanently-disabling-windows-compatibility/6bf71583-81b0-4a74-ae2e-8fd73305aad1
$tasks = @ (
" \Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser "
" \Microsoft\Windows\Application Experience\ProgramDataUpdater "
" \Microsoft\Windows\Application Experience\StartupAppTask "
" \Microsoft\Windows\Application Experience\PcaPatchDbTask "
)
foreach ( $task in $tasks ) {
Disable-ScheduledTask -TaskName $task
}