You might have reason to do this, here’s how I did it (there are slight variations elsewhere online).
- Set the following registry value:
HKLM\SYSTEM\CurrentControlSet\services\TCPIP6\Parameters\DisabledComponents = 0xFFFFFFFF
After the reboot you can check that IPv6 is not working by issuing ipconfig /all and noticing the complete lack of IPv6 in the output. Your machine will also remove any IPv6 entries it might have previously placed into Windows dynamic DNS, leaving only IPv4.