标题: [转贴] VBS脚本获取IIS的连接数 [打印本页]
作者: HAT 时间: 2015-4-29 17:24 标题: VBS脚本获取IIS的连接数
- Dim result
- On Error Resume Next
-
- arrComputers = Array(".")
- For Each strComputer In arrComputers
- ' Wscript.Echo("begin--" & result)
- Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
- Set colItems = objWMIService.ExecQuery("SELECT CurrentConnections FROM Win32_PerfFormattedData_W3SVC_WebService",,48)
- For Each objItem In colItems
- ' Wscript.Echo("foreach:cc=" & objItem.CurrentConnections)
- result=objItem.CurrentConnections
- Next
- Wscript.Echo("end--" & result)
- Next
复制代码
转自 http://bbs.csdn.net/topics/390315464
欢迎光临 批处理之家 (http://bbs.bathome.net/) |
Powered by Discuz! 7.2 |