This is the built-in help made by Microsoft for the command 'Restart-PrintJob', in PowerShell version 4 - as retrieved from
Windows version 'Microsoft Windows 8.1 Enterprise' 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.
Restarts a print job on the specified printer.
Restart-PrintJob [-PrinterObject] <CimInstance> [-ID] <UInt32> [-AsJob] [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [-Confirm] [-WhatIf] [<CommonParameters>
]
Restart-PrintJob [-InputObject] <CimInstance> [-AsJob] [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [-Confirm] [-WhatIf] [<CommonParameters>]
Restart-PrintJob [-PrinterName] <String> [-ID] <UInt32> [-AsJob] [-CimSession <CimSession[]>] [-ComputerName <String>] [-ThrottleLimit <Int32>] [-Confirm] [-WhatIf] [
<CommonParameters>]
The Restart-PrintJob cmdlet restarts a print job on the specified printer.
You can specify the print job to restart by specifying the PrinterName and ID parameters, by specifying printer object and job ID parameter, or by specifying the job
object as an input.
You cannot use wildcard characters with Restart-PrintJob. You can use Restart-PrintJob in a Windows PowerShell remoting session.
You do not need administrator privileges to use Restart-PrintJob.
<
Online Version: http://go.microsoft.com/fwlink/?LinkId=289476
Get-PrintJob
Remove-PrintJob
Suspend-PrintJob
Resume-PrintJob
<
Example 1: Restart a selected print job
PS C:\> Restart-PrintJob -PrinterName "PrinterName" -ID 1
This command restarts the print job with an ID of 1 on the printer named PrinterName.
Example 2: Restart a print job by using printer object and the print job ID
PS C:\>$printer = Get-Printer -PrinterName "PrinterName"
PS C:\>Restart-PrintJob -PrinterObject $printer -ID 1
This set of commands retrieves the printer object in to a variable ($printer) using Get-Printer, and then passes the content of the variable to Restart-PrintJob to re
start the print job with the ID of 1 on the printer contained in the printer object.
Example 3: Restart print job using job object
PS C:\>$printJob = Get-PrintJob -PrinterName "PrinterName:" -ID 1
PS C:\>Restart-PrintJob -InputObject $printJob
This set of commands retrieves the print job with an ID of 1 in to a variable ($printJob) using Get-PrintJob, and then passes the contents of the variable to Restart-
PrintJob to restart the print job on a printer by using a print job object.