Hey guys I wonder if it's possible to set classid on Ethernet interface via Powershell? I tried that on server 2k12 R2 via ifconfig but I get no results.
Hey guys I wonder if it's possible to set classid on Ethernet interface via Powershell? I tried that on server 2k12 R2 via ifconfig but I get no results.
It appears that there is no way to do it apart from good old
ipconfig
(you can call ipconfig from script):Alternatively you can mimic
ipconfig
behavior as it just reads/writesHKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\<GUID for the NIC adapter>\DhcpClassId
.See more details here.