2

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.

user
  • 4,267
  • 4
  • 32
  • 70
nethero
  • 238
  • 1
  • 9

1 Answers1

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
  • 1
  • 3
  • 12