Skip to content

Using the PowerShell version

iam-py-test edited this page Feb 16, 2023 · 2 revisions

If you use the default firewall on Windows 10 and 11, there is a PowerShell script you can use to add rules from the Malicious Website Blocklist.
This has been deprecated and is no longer updated

How it can be used

First, download the latest version from https://raw.githubusercontent.com/iam-py-test/my_filters_001/main/Alternative%20list%20formats/antimalware_firewall_script.ps1
Then, open PowerShell as admin (this can be done on Windows 10 via Windows key-X and then clicking Windows PowerShell (Admin)). Type cd and then the directory where you saved the script. Then type .\[the name of the file].
If you see this error, then PowerShell is not configured to allow scripts:
image
You can type Get-ExecutionPolicy to see what the policy is set as:
image
If you wish to completely disable this protection, you can run Set-ExecutionPolicy -ExecutionPolicy Bypass:
image

Clone this wiki locally