Posted On March 31, 2019

Query Print Spooler of SERVER1

kimconnect 0 comments
blog.KimConnect.com >> Codes >> Query Print Spooler of SERVER1
function getStatus($server, $service){
   Get-WmiObject Win32_Service -Filter "Name Like 'spooler'" -computer SERVER1 -credential $cred | select Name, State, StartMode, StartName
}

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

BASH: Basic AWK Training

At first, AWK resembles the first three letter of 'awkward'. Nope, it's a scripting language…

NaN

- Meaning: Not a Number - When used as an assignment to an element index…

PowerShell: Monitor a Program Wizard for Its Task Completion

Once upon a time in the realm of SysAdmin endless green pastures, there were rampant…