Please note that this script is no longer maintained. If you encounter a problem, feel free to raise an issue but expect delayed responses.
Linux script: https://github.com/danilotat/SpotifyHosts. Thanks to danilotat for the bash port.
Requirements:
- Being logged in as an administrator.
- Have the Execution-Policy set to unrestricted in order to run scripts. (Detailed steps below)
- Internet Access.
- Have the Spotify Windows client installed.
- [Optional but recomended] Have a logged in account in the Spotify client.
- Have the Spotify client closed.
How to use it:
-
(Set Execution-Policy) Open a powershell window as administrator and type the following:
Set-ExecutionPolicy unrestricted
Hit enter, type "A" (Without the quotation marks) and hit enter again. Now you can close the powershell window.
- Download the "Remove-Spotify-Ads.ps1" File to your computer.
- Right click on it, and select "Run with powershell".
- Accept the Admin prompt.
Known Issues:
- The script will most likely fail (red words in the blue window) if you try to run it again because of a specific File being renamed, so when ran again, the script will try to rename a file that no longer exists.
- If you're logged in, into a not-admin account, the script wont work since it requires admin rights.
- You tell me.