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.
|Share this post :|