Skip to content
makorus edited this page Feb 3, 2018 · 1 revision

Table of Contents

Welcome to the PS-AdBlock Wiki

FAQs

Q1: How to execute this PowerShell script?

There are two options, use either the first or the second.

  • Run the script using one of the included batch scripts, either the "_Run_Admin.bat" or the "_Run_User.bat" batch script.
  • Manually run the PowerShell script. But at first, you have to unblock the PowerShell script because it is a script you downloaded from the internet. Once you unzipped the file, do a right click on the PS1 file and open its file properties. Click on the "Unblock" button and you're done. Right click the file and click on "Run with PowerShell".

Q2: Why do I get an message warning me about an execution policy?

Microsoft implemented this security feature when they published PowerShell. By default, the execution policy is set to "restricted", which means no scripts can be executed directly. You're able to configure the execution policy as you want.
There are several execution policies, you can check them out here: Microsoft TechNet, Set-ExecutionPolicy.
I personally recommend to change the execution policy to "unrestricted", this means you can execute scripts you created and even those you downloaded from the internet (though you have to be careful what you download and what you execute).

Q3: How to uninstall this PowerShell script?

Basically, you just have to navigate to this folder:
C:\Windows\System32\drivers\etc

Delete the new hosts file and restore the original one by renaming "hosts.original" to "hosts" without any extension. After that, simply delete the files you downloaded here.