W2KSG: Check Spooler Service
Checking the status of a service in PowerShell is very easy.
Listing 13.6 in the scripting guide shows how to check the status of the print service using 8 lines of VBScript. It translates to
Get-Service -Name "Spooler"
It doesn't get any easier.


Read the complete post at http://richardsiddaway.spaces.live.com/Blog/cns!43CFA46A74CF3E96!1842.entry