Feel free to try this method if it works, if not switch back to the one below.
PLEASE NOTE: Replace
Userwith the user you want to use locally ( eg.John)
- Reach the country selection window
- Press
Shift + F10
| import ipaddress | |
| import requests | |
| def fetch_country_ipv4_prefixes(resource_type): | |
| r = requests.get( | |
| "https://stat.ripe.net/data/country-resource-list/data.json", | |
| params={"resource": resource_type, "v4_format": "prefix"}, | |
| timeout=30, |
| ### | |
| ### | |
| ### UPDATE: For Win 11, I recommend using this tool in place of this script: | |
| ### https://christitus.com/windows-tool/ | |
| ### https://github.com/ChrisTitusTech/winutil | |
| ### https://www.youtube.com/watch?v=6UQZ5oQg8XA | |
| ### iwr -useb https://christitus.com/win | iex | |
| ### | |
| ### OR take a look at | |
| ### https://github.com/HotCakeX/Harden-Windows-Security |