Install a printer driver on the specified computer.
Syntax
Add-PrinterDriver [[-Name] String[]] [[-InfPath] String]
[-ComputerName String] [-PrinterEnvironment String]
[-CimSession CimSession[]] [-ThrottleLimit Int32]
[-AsJob] [-WhatIf] [-Confirm] [CommonParameters]
Key
-Name
The name of the printer driver to add.
-AsJob
Run the cmdlet as a background job.
Use this parameter to run commands that take a long time to complete.
-ComputerName
The name of the computer computer on which to install the printer driver.
-CimSession
Run the cmdlet in a remote session or on a remote computer. Enter a computer name or
a session object, such as the output of a New-CimSession or Get-CimSession cmdlet.
The default is the current session on the local computer.
-Confirm
Prompt for confirmation before executing the command.
-InfPath
The path of the printer driver INF file in the driver store.
INF files contain information about the printer and the printer driver.
-PrinterEnvironment
The printer driver environment.
-ThrottleLimit
The maximum number of concurrent operations that can be established to run the cmdlet.
If this parameter is omitted or a value of 0 is entered, then PowerShell calculates an
optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running
on the computer.
The throttle limit applies only to the current cmdlet, not to the session or to the computer.
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
The Add-PrinterDriver cmdlet installs a printer driver on the specified computer.
You cannot use wildcard characters with Add-PrinterDriver.
You can use Add-PrinterDriver in a Windows PowerShell remoting session.
You need administrator credentials to run Add-PrinterDriver.
Add a printer driver:
PS C:\> Add-PrinterDriver -Name "KX Universal Printer Driver"
Add a printer driver on remote computer:
PS C:\> Add-PrinterDriver -Name "KX Universal Printer Driver" -ComputerName "printServer2"
“A pure heart translates into a pure and unselfish motive for undertaking a task” ~ Kazuo Inamori (founder of Kyocera)
Add-PrinterPort - Install a printer port on the computer.
Add-Printer - Add a printer to the specified computer.
Get-Printer - Retrieve a list of printers installed on a computer.
Get-PrintJob - Retrieve a list of print jobs from the specified printer.
DISM /online /export-driver - Export a list of Drivers.