- Home
·
- Internet/HTML
·
- WMI sample: lists all application service details of a computer
WMI sample: lists all application service details of a computer
WMI sample: lists all application service details of a computer
Rate WMI sample: lists all application service details of a computer
(1(1 Vote))
' This function lists all application service details of a computer
' Goto http://www.activxperts.com/activmonitor and click on WMI Samples
' for more samples
Sub ListApplicationService( strComputer )
Dim objWMIService, colItems
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_ApplicationService",,48)
For Each objItem in colItems
Wscript.Echo "Caption: " & objItem.Caption
Wscript.Echo "CreationClassName: " & objItem.CreationClassName
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "InstallDate: " & objItem.InstallDate
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "Started: " & objItem.Started
Wscript.Echo "StartMode: " & objItem.StartMode
Wscript.Echo "Status: " & objItem.Status
Wscript.Echo "SystemCreationClassName: " & objItem.SystemCreationClassName
Wscript.Echo "SystemName: " & objItem.SystemName
Next
End Sub
' Main
Dim strComputer
Do
strComputer = inputbox( "Please enter a computername or . for local computer", "Input" )
Loop until strComputer <> ""
ListApplicationService( strComputer )
WScript.Echo( "For more samples, goto http://www.activxperts.com/activmonitor and click" )
WScript.Echo( "On WMI samples" )
WMI sample: lists all application service details of a computer Comments
No comments yet — be the first to post one!
Post a Comment