Block Cortana on the Windows Firewall with PowerShell

Quick script to Block Cortana on the Windows Firewall by using PowerShell:

 

$path = "$env:windir\systemapps\Microsoft.Windows.Cortana_cw5n1h2txyewy\SearchUI.exe"
If (Test-Path $path) {
If ($(Get-NetFirewallRule -DisplayName DisableCortana))
{
Write-Host("Firewall rule for 'DisableCortana' already exists")
}
else
{
New-NetFirewallRule -DisplayName DisableCortana -Action Block -Direction Outbound -Profile Any -Description "Blocks outbound network connections originated from Cortana" -Program $path
}
}

You can download it here:

Block Cortana in Windows Firewall

 

Leave a comment

Your email address will not be published. Required fields are marked *

13 − 10 =