Disable IPV6 on specific NIC via PowerShell using a Com Object on Windows Server 2008 R2?

Posted by user1256194 on Stack Overflow See other posts from Stack Overflow or by user1256194
Published on 2012-03-24T17:22:14Z Indexed on 2012/03/24 17:29 UTC
Read the original article Hit count: 233

I need to script some Windows Server 2008 R2 builds, preferably in PowerShell. I need to disable or uncheck IPV6 on a specific NIC (the same NIC every time). Currently, I have to set it manually. I do not want to disable IPV6 completely for the entire server other things may use that in the future. Is there an object I can reference in a PowerShell command specifying my NIC "Intel(R) PRO/1000 MT Network Connection" and disable IPV6? Unfortunately, Group Policy is not an option says the boss. I've tried finding an appropriate WMI object via "PowerShell Scriptomatic" but failed to find the difference between an enabled setting versus disabled on the Intel NIC. Thanks in advance.

© Stack Overflow or respective owner

Related posts about powershell

Related posts about windows-server-2008