$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支持
2023-10-19 17:33:58
$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支持