sol10-5.vbs
来自「Apress - Managing Enterprise Systems Wit」· VBS 代码 · 共 12 行
VBS
12 行
Const WMICConst = "winmgmts:{impersonationLevel=impersonate}!"
Dim objWMINetConfig, nResult
'get the instance for the first adapater
Set objWMINetConfig = _
GetObject(WMICConst & "Win32_NetworkAdapterConfiguration.Index=1")
'assign two static IP addresses to the adapter
nResult=objWMINetConfig.EnableStatic(Array("192.168.1.2","192.168.1.3"), _
Array("255.255.255.0", "255.255.255.0"))
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?