无法使用PowerShell命令Set-NetIPInterface从DHCP获取IP

时间:2017-09-12 11:17:49

标签: windows powershell tcp-ip dhcp server-core

当我使用Sconfig配置Windows Server Core时,它运行良好并从我的DHCP服务器获取IP。

但它不适用于PowerShell。我正在使用这个命令:

Set-NetIPInterface -InterfaceAlias "Ethernet 2" -Dhcp Enabled

ipconfig结果:

Ethernet adapter Ethernet 2:

    Connection-specific DNS Suffix  . : 
    Link-local IPv6 Address . . . . . : fe80::e432:65ae:f7a7:c350%4
    Default Gateway . . . . . . . . . : 

0 个答案:

没有答案