update host files with PowerShell #2218
ManlyElectronics
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been too lazy to learn Python. I've made a 2 line PowerShell script to update hosts. Hosts are not updated very often. So the manual script is just fine. PowerShell works on Windows 7 - 11. Although hosts are better to use on Linux or push to blacklist in a router via CLI. My script simply takes two files and join unique lines from them ignoring comments, thus filtering duplicates.
I give link as I should update script. https://github.com/ManlyElectronics/hosts
Beta Was this translation helpful? Give feedback.
All reactions