- Home
·
- Internet/HTML
·
- WMI sample: retrieve COM application info of a local or remote computer. Written in VBScript. Uses
WMI sample: retrieve COM application info of a local or remote computer. Written in VBScript. Uses
WMI sample: retrieve COM application info of a local or remote computer. Written in VBScript. Uses Win32_COMApplication WMI class.
Rate WMI sample: retrieve COM application info of a local or remote computer. Written in VBScript. Uses
(2(2 Vote))
' This function lists COM application info of a (remote) computer
' Goto http://www.activexperts.com/activmonitor and click on WMI Samples
' for more samples
Sub ListCOMAppInfo( strComputer )
Dim objWMIService, colItems
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_COMApplication",,48)
For Each objItem in colItems
Wscript.Echo "Caption: " & objItem.Caption
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "InstallDate: " & objItem.InstallDate
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "Status: " & objItem.Status
Next
End Sub
' Main
Dim strComputer
Do
strComputer = inputbox( "Please enter a computername or . for local computer", "Input" )
Loop until strComputer <> ""
ListCOMAppInfo( strComputer )
WScript.Echo( vbCrlf & "For more samples, goto http://www.activexperts.com/activmonitor and click" )
WScript.Echo( "On WMI samples" )
WMI sample: retrieve COM application info of a local or remote computer. Written in VBScript. Uses Comments
No comments yet — be the first to post one!
Post a Comment