PowerShell Logo Small

Remove-PrinterDriver



This is the built-in help made by Microsoft for the command 'Remove-PrinterDriver', 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

Deletes printer driver from the specified computer.

SYNTAX


Remove-PrinterDriver [-Name] <String[]> [[-PrinterEnvironment] <String[]>] [-AsJob] [-CimSession <CimSession[]>] [-ComputerName <String>] [-PassThru]
[-RemoveFromDriverStore] [-ThrottleLimit <Int32>] [-Confirm] [-WhatIf] [<CommonParameters>]
Remove-PrinterDriver [-AsJob] [-CimSession <CimSession[]>] [-PassThru] [-ThrottleLimit <Int32>] -InputObject <CimInstance[]> [-Confirm] [-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Remove-PrinterDriver cmdlet deletes a printer driver from the specified computer. You can specify the printer driver to remove by using either a printer object
retrieved by Get-Printer, or by specifying a printer name.


You can use wildcard characters with Remove-PrinterDriver. You can use Remove-PrinterDriver in a Windows PowerShell remoting session.


You need administrator privileges to use Remove-PrinterDriver.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=289472
Get-PrinterDriver
Add-PrinterDriver

REMARKS

<

Examples


Example1: Remove the printer driver

PS C:\> Remove-PrinterDriver –Name "Microsoft XPS Document Writer v4"



This command removes the "Microsoft XPS Document Writer v4" driver.




Example2: Remove the printer driver using object

PS C:\>$PrinterDriver = Get-Printer –Name "Microsoft XPS Document Writer v4"


PS C:\>Remove-PrinterDriver –InputObject $PrinterDriver



This set of commands retrieves a printer object into a variable ($PrinterDriver) using Get-Printer, and then passes the contents of the variable to Remove-PrinterDriver.