Enable/Disable IPv4 on Windows | ||
| ||
| Disabling IPv4 on Windows through a batch script can be a bit more involved compared to disabling IPv6, but it's still achievable using netsh. Here's a script that disables IPv4 on all network interfaces: Save this script with a .bat extension (e.g., disable_ipv4.bat). When you run this script with administrative privileges, it will disable IPv4 on all network interfaces. You can use below if you want Again, use caution when running scripts that require administrative privileges, as they can have significant impacts on your system's network connectivity. Always review scripts thoroughly before execution.
Below is code for enabling IPv4 You can use below if you want
| ||
| | ||
| |