Disable IPv6 via PowerShell in One Line

This will add the registry entry Microsoft suggests to disable IPv6

New-ItemProperty “HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters” -Name  “DisabledComponents” -Value  0xffffffff -PropertyType “DWord”