PowerShell Logo Small

Get-PrintJob



This is the built-in help made by Microsoft for the command 'Get-PrintJob', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Retrieves a list of print jobs in the specified printer.

SYNTAX


Get-PrintJob [-PrinterName] <String> [-AsJob] [-CimSession <CimSession[]>] [-ComputerName <String>] [-ID <UInt32>] [-ThrottleLimit <Int32>] [<CommonParameters>]
Get-PrintJob [-PrinterObject] <CimInstance> [-AsJob] [-CimSession <CimSession[]>] [-ID <UInt32>] [-ThrottleLimit <Int32>] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Get-PrintJob cmdlet retrieves the current print jobs in the specified printer. Use the PrinterName parameter to list the print jobs from the specified printer.


You cannot use wildcard characters with Get-PrintJob. You can use Get-PrintJob in a Windows PowerShell remoting session.


You do not need administrator privileges to use Get-PrintJob.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=289218
Remove-PrintJob
Restart-PrintJob
Suspend-PrintJob
Resume-PrintJob

REMARKS

<

Examples


Example 1: Get a list of print jobs

PS C:\> Get-PrintJob –PrinterName "PrinterName"



This command retrieves a list of print jobs on the printer named PrinterName.




Example 2: Get a list of print jobs using a printer object

PS C:\> $printer = Get-Printer -Name "PrinterName:"
PS C:\> Get-PrintJob –InputObject $printer



This set of commands retrieves a printer object into a variable ($Printer) using Get-Printer, and then retrieves the list of print jobs on the printer specified by the
printer object in the variable by using Get-PrintJob.