I was recently searching for a quick way of testing the WMI on remote machine. Apparently you can accomplish this task by using PowerShell or VBScript etc. However there seems to be much easier way.

The Windows Management Instrumentation Command (WMIC) perfectly fits here. Following command allows checking the state of Server service on a remote machine.

wmic /node:"HOSTNAME" SERVICE WHERE Caption="Server" GET started

The result:

wmic

 

Reference:

WMIC – Take Command-line Control over WMI
http://technet.microsoft.com/en-us/library/bb742610.aspx

wmic
http://msdn.microsoft.com/en-us/library/windows/desktop/aa394531%28v=vs.85%29.aspx

WMIC.exe
http://ss64.com/nt/wmic.html/desktop/aa394531%28v=vs.85%29.aspx

 

Kind Regards,
Witold Lawacz (Ławacz)