I recently came across the need to determining if IPv6 was disabled on a specific Network Adapter across many servers. I couldn’t find anything that pointed in a good direction, so here is the easy way to do it with PowerShell.
To check IPv6 binding for a specific adapter use:
Get-NetAdapterBinding -Name 'NameOfNic' -ComponentID ms_tcpip6
This will give you the enabled state for that adapter.
If you want to just retrieve that state you can use:
(Get-NetAdapterBinding -Name 'NameOfNic' -ComponentID ms_tcpip6).Enabled
Substitute the NameOfNic with the actual name of the adapter of course.
Hope this helps.
I did check that this works as far back as 2012. docs.microsoft.com didn’t list versions below default for 2012/Win8 and I didn’t test anything older. If you find out it works before that please let me know!
Discover more from Want Computers
Subscribe to get the latest posts sent to your email.
No responses yet