Hi Team,
I need to check number of jobs in print queue in a printer using PowerShell script ?
Hi Team,
I need to check number of jobs in print queue in a printer using PowerShell script ?
$printer = Get-Printer -Name “My Printer”
$printJobs = Get-PrintJob -PrinterName $printer.Name
$jobCount = $printJobs.Count
Write-Output “There are currently $jobCount jobs in the print queue for $($printer.Name).”