通过WMI配置IP

$wmi = gwmi win32_networkadapterconfiguration -filter "ipenabled = 'true'"
$wmi.EnableStatic("10.0.1.101","255.255.255.0")
$wmi.SetGateways("10.0.1.1",1)

$wmi.SetDNSServerSearchOrder("202.106.0.20")

Set-NetFirewallRule #PS3.0支持

posted on 2014-08-05 15:15  momingliu11  阅读(609)  评论(0编辑  收藏  举报