[Windows 10, 8, 7, XP etc.] @rvg:
Hello [MENTION=4881417]Makorus[/MENTION],

Thanks for this WONDERFUL post. However, when I am trying this on Win10 Pro Build 19042.421 desktop I am getting the below error. Please advise how to fix this. Thanks again for this script.

Checking for existing hostslist.ini file...

Found existing hostslist.ini file - reading file...

Successfully queried hostslist.ini file!

***************************************************************************************************

Checking for existing whitelist.ini file...

Found existing whitelist.ini file - reading file...

Successfully queried whitelist.ini file!

***************************************************************************************************

Checking whether the 'C:\Users\rupes\Downloads\Compressed\PS-AdBlock-master\DL_Cache\' folder exists...

Existing download cache folder found!

***************************************************************************************************

Starting download process for 'hosts' sources...

Downloading hosts file from: http://hostsfile.org/Downloads/hosts.txt

Downloading hosts file to: C:\Users\rupes\Downloads\Compressed\PS-AdBlock-master\DL_Cache\1_source-hosts.txt

Downloading hosts file from: http://someonewhocares.org/hosts/zero/hosts

Downloading hosts file to: C:\Users\rupes\Downloads\Compressed\PS-AdBlock-master\DL_Cache\2_source-hosts.txt

Downloading hosts file from: http://winhelp2002.mvps.org/hosts.txt

Downloading hosts file to: C:\Users\rupes\Downloads\Compressed\PS-AdBlock-master\DL_Cache\3_source-hosts.txt

Downloading hosts file from: http://adaway.org/hosts.txt

Downloading hosts file to: C:\Users\rupes\Downloads\Compressed\PS-AdBlock-master\DL_Cache\4_source-hosts.txt

Downloading hosts file from: http://pgl.yoyo.org/as/serverlist.php?hostformat=hosts&showintro=0&mimetype=plaintext

Downloading hosts file to: C:\Users\rupes\Downloads\Compressed\PS-AdBlock-master\DL_Cache\5_source-hosts.txt

Downloading hosts file from: http://www.malwaredomainlist.com/hostslist/hosts.txt

Downloading hosts file to: C:\Users\rupes\Downloads\Compressed\PS-AdBlock-master\DL_Cache\6_source-hosts.txt

Downloading hosts file from: https://raw.githubusercontent.com/hoshsadiq/adblock-nocoin-list/master/hosts.txt

Downloading hosts file to: C:\Users\rupes\Downloads\Compressed\PS-AdBlock-master\DL_Cache\7_source-hosts.txt

Downloading hosts file from: https://raw.githubusercontent.com/greatis/Anti-WebMiner/master/hosts

Downloading hosts file to: C:\Users\rupes\Downloads\Compressed\PS-AdBlock-master\DL_Cache\8_source-hosts.txt

Finished download process!

***************************************************************************************************

Merging all hosts files into one big file, ignoring comment lines and duplicates, sorting and trimming lines...

Applying patch table...

Applying patch for 'hostsfile.org'...

Applying patch for 'someonewhocares.org'...

Applying patch for 'winhelp2002.mvps.org'...

Applying patch for 'adaway.org'...

Applying patch for 'pgl.yoyo.org'...

Applying patch for 'malwaredomainlist.com'...

Applying patch for 'bit.ly'...

Applying patch for 'spotify.com'...

Applying patch for 'skype.com'...

Applying patch for 'm.hotmail.com'...

Applying patch for 's.gateway.messenger.live.com'...

Applying patch for 's.youtube.com'...

Applying patch for 'goo.gl'...

Successfully finished apply process!

Creating new 'hosts'-file...

Get-Content : Operation did not complete successfully because the file contains a virus or potentially unwanted

software.

At C:\Users\rupes\Downloads\Compressed\PS-AdBlock-master\PS_AdBlock.ps1:563 char:54

+ ... :WriteAllLines($FinalHostsFile, $(Get-Content $FinalHostsFile), $(New ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo : ReadError: (C:\Users\rupes\...ck-master\hosts:String) [Get-Content], IOException

+ FullyQualifiedErrorId : GetContentReaderIOError,Microsoft.PowerShell.Commands.GetContentCommand

---> !!! ATTENTION !!! <---

An unexpected error has occured!

---> !!! ATTENTION !!! <---

Press any key to continue . . .