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

PowerShell: Get Ports to Process Connections / Associations

Current Iteration: Here is a quick snippet to enable Network Engineers and Systems dudes to…

Ubuntu/Lubuntu: Setting Up Development Environment

Linux is a great platform for development. One advantage of a this OS is that…

PowerShell: Script to Apply Windows Update on 2016 Server

8/7/2020: there's a more updated version available here. # Update-Remote-Windows-2016-Servers.ps1$servers="SERVER1","SERVER2"function applyWindowsUpdates{ [CmdletBinding()] param ( [parameter(Mandatory=$true,Position=1)]…