Category Archive: WMI Scripts

Nov 22

Get window service information by WMI Query

How to find Window Service Name/ Service Path/ Service State for local or remote machine/server by using WMI? VBScript: arrComputers = Array(“localhost”) For Each strComputer In arrComputers WScript.Echo WScript.Echo “==========================================” WScript.Echo “Computer: ” & strComputer WScript.Echo “==========================================” Set objWMIService = GetObject(“winmgmts:\\” & strComputer & “\root\CIMV2″) Set colItems = objWMIService.ExecQuery( _ “SELECT * FROM Win32_Service”,,48) For …

Continue reading »

Permanent link to this article: http://www.techxpress.in/get-window-service-information-by-wmi-query/

Nov 22

Get Free Physical Memory Free/ Virtual Memory/ Number Of Processes by WMI

How to find OS details/ physical memory/ virtual memory/ processor information of local or remote machine?   WMI Script: VBScript: arrComputers = Array(“localhost”) For Each strComputer In arrComputers WScript.Echo WScript.Echo “==========================================” WScript.Echo “Computer: ” & strComputer WScript.Echo “==========================================” Set objWMIService = GetObject(“winmgmts:\\” & strComputer & “\root\CIMV2″) Set colItems = objWMIService.ExecQuery( _ “SELECT * FROM Win32_OperatingSystem”,,48) …

Continue reading »

Permanent link to this article: http://www.techxpress.in/get-free-physical-memory-free-virtual-memory-number-of-processes-by-wmi/

Bookmark this page