PowerShell Logo Small

Remove-PrinterDriver



This is the built-in help made by Microsoft for the command 'Remove-PrinterDriver', in PowerShell version 3 - as retrieved from Windows version 'Microsoft Windows Server 2012 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 [<SwitchParameter>]] [-CimSession <CimSession>] [-ComputerName
<String>] [-PassThru [<SwitchParameter>]] [-RemoveFromDriverStore [<SwitchParameter>]] [-ThrottleLimit <Int32>] [-Confirm [<SwitchParameter>]]
[-WhatIf [<SwitchParameter>]] [<CommonParameters>]
Remove-PrinterDriver [-AsJob [<SwitchParameter>]] [-CimSession <CimSession>] [-PassThru [<SwitchParameter>]] [-ThrottleLimit <Int32>]
-InputObject <CimInstance> [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<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

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.