This is the built-in help made by Microsoft for the command 'Get-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.
Retrieves the list of printer drivers installed on the specified computer.
Get-PrinterDriver [[-Name] <String>] [-AsJob [<SwitchParameter>]] [-CimSession <CimSession>] [-ComputerName <String>] [-PrinterEnvironment
<String>] [-ThrottleLimit <Int32>] [<CommonParameters>]
The Get-PrinterDriver cmdlet retrieves the list of printer drivers installed on the specified computer.
The Get-PrinterDriver cmdlet returns a printer driver object that you can store in a variable to use with other cmdlets. You can use
the ComputerName parameter to list the printer drivers installed on another computer.
You can use wildcard characters with Get-PrinterDriver. You can use Get-PrinterDriver in a Windows PowerShell remoting session.
You do not need administrator privileges to use Get-PrinterDriver.
<
Add-PrinterDriver
Remove-PrinterDriver
<
Example 1: Get a list of printer drivers using wildcard characters
PS C:\> Get-PrinterDriver *
This command returns a list of printer drivers installed on the local computer using wildcard characters.
Example 2: Get a list of printer drivers on a remote computer
PS C:\> Get-PrinterDriver * -ComputerName printServer
This command retrieves a list of printer drivers from the computer named printServer.
Example 3: Get detailed information of each driver
PS C:\> Get-PrinterDriver –Name "Microsoft XPS Document Writer" | Format-List
Get-PrinterDriver displays a summarized view of each printer driver queried.
The following command displays the detailed information for each printer driver.
Example 4: Get a printer driver object
PS C:\> $PrinterDriver = Get-PrinterDriver –Name "Microsoft XPS Document Writer v4"
This command retrieves a printer driver object that you can use with other cmdlets. The printer driver object is stored in the $PrinterDriver
variable.