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 *