Get-PrinterPort

Retrieve a list of printer ports installed on the specified computer.

Syntax
      Get-PrinterPort [-Name] String [-ComputerName String] 
         [-CimSession CimSession[]] [-ThrottleLimit Int32]
            [-AsJob] [CommonParameters]

Key
   -Name
       The name of the printer port to retrieve.

   -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 retrieve the printer port.

   -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.

   -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 Get-PrinterPort cmdlet retrieves a list of printer ports that are installed on the specified computer.

Examples

Get a list of printer ports:

PS C:\> Get-PrinterPort

“Any port in a storm” ~ proverb

Related PowerShell Cmdlets

Add-PrinterDriver - Install a printer driver 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.


 
Copyright © 1999-2026 SS64.com
Some rights reserved