我如何在 WMI 脚本下面写到 WMIC?
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\Microsoft\SqlServer\ComputerManagement10")
Set colItems = objWMIService.ExecQuery( _
"SELECT * FROM ServerNetworkProtocol",,48)
For Each objItem in colItems
Wscript.Echo "-----------------------------------"
Wscript.Echo "ServerNetworkProtocol instance"
Wscript.Echo "-----------------------------------"
Wscript.Echo "Enabled: " & objItem.Enabled
Wscript.Echo "ProtocolName: " & objItem.ProtocolName
Next