Forum Discussion

TechHelp76's avatar
TechHelp76
Copper Contributor
Apr 17, 2025

Script to Disable IPv6

We have an Intune setup and I've done some research on disabling IPv6. However it seems to be failing on the test computer we pushed it out too. I thought it would push a registry edit change but it seems to be failing in InTune.

 

Has anyone had any luck disabling IPv6 via Intune? Right now were having to manually disable it. 

 

Powershell Script:

Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters" -Name "DisabledComponents" -Value 0xFFFFFFFF

4 Replies

  • Msud's avatar
    Msud
    Copper Contributor

    Disable-NetAdapterBinding -Name "*" -ComponentID ms_tcpip6

    • TechHelp76's avatar
      TechHelp76
      Copper Contributor

      That's the thing, it doesn't give an error but if you look at the report in Intune it shows "Failed".

      I can supply a screenshot but I do not see the exact error.

      • Garth-MVP's avatar
        Garth-MVP
        Iron Contributor

        Add logging to the script and review this log. 

Resources