$wmi = Get-WmiObject win32_networkadapterconfiguration -filter "ipenabled = 'true'" $wmi.EnableStatic("192.168.1.15", "255.255.255.0") $wmi.SetGateways("192.168.1.1", 1) $wmi.SetDNSServerSearchOrder("8.8.8.8")
使用PowerShell配置局域网静态IP
分类: