Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Monitor the Print ServiceContent of Monitor the Print Service.vbsMD5 Hash: 177807B0032C4ED25840E33ADADFD11F |
||
' Description: Returns the status of the Spooler service (running, stopped, paused, etc.).
strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colRunningServices = objWMIService.ExecQuery _ ("Select * from Win32_Service Where Name = 'Spooler'") For Each objService in colRunningServices Wscript.Echo objService.DisplayName & " -- " & objService.State Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |