vbs在网页中显示服务
strComputer = "."
Set objExplorer = WScript.CreateObject("InternetExplorer.Application")
objExplorer.Navigate "about:blank"
objExplorer.ToolBar = 0
objExplorer.StatusBar = 0
objExplorer.Visible = 1
Set objWMIService = GetObject _
("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery _
("SELECT * FROM Win32_Service")
For Each objItem in colItems
strHTML = strHTML & objItem.DisplayName & " = " & objItem.State & "<BR>"
Next
objExplorer.Document.Body.InnerHTML = strHTML
相关文章
Msxml2.XMLHTTP Msxml2.ServerXMLHTTP与缓存
用 VBS 发送 HTTP 请求时,首先想到的一般是 Msxml2.XMLHTTP(Microsoft.XMLHTTP 已经不提倡使用了)。2011-10-10
用vbs实现解除注册表CMD、Regedit、Taskmgr限制的脚本代码
vbs解除CMD、Regedit、Taskmgr限制的代码2008-06-06


最新评论