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.
Asked
Active
Viewed 2,330 times
1 Answers
2
It appears that there is no way to do it apart from good old ipconfig (you can call ipconfig from script):
ipconfig /setclassid "Local Area Connection" TEST
Alternatively you can mimic ipconfig behavior as it just reads/writes HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\<GUID for the NIC adapter>\DhcpClassId.
See more details here.
Anton Krouglov
- 296