ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    List Windows Printers from PowerShell Command Line CLI

    Scheduled Pinned Locked Moved IT Discussion
    windowswindows serverprinterpowershellcommand linecli
    3 Posts 3 Posters 116 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller
      last edited by scottalanmiller

      If you need to remote into a Windows machine and get a list of printers without interrupting the user, this powershell command is quick and easy...

      Get-Printer | Format-Table
      
      DustinB3403D 1 Reply Last reply Reply Quote 0
      • gjacobseG
        gjacobse
        last edited by gjacobse

        I used this for polling printers on specific print server for printers like:

        #Printer - Get devices like
        
        $remoteComputer = "PrintServer01"
        # Get printer information
        $printers = $printers = Get-CimInstance -ClassName Win32_Printer -ComputerName $remoteComputer |
        Where-Object { $_.Name -match '^SITE[-_]' }
        
        foreach ($printer in $printers) {
            $port = Get-CimInstance -ClassName Win32_TCPIPPrinterPort -ComputerName $remoteComputer |
                Where-Object { $_.Name -eq $printer.PortName }
        
            [PSCustomObject]@{
                Name       = $printer.Name
                IPAddress  = $port.HostAddress
                #Model      = $printer.DriverName
                #PrintServer= $printer.ServerName
            }
        }
        
        1 Reply Last reply Reply Quote 0
        • DustinB3403D
          DustinB3403 @scottalanmiller
          last edited by

          @scottalanmiller said in List Windows Printers from PowerShell Command Line CLI:

          If you need to remote into a Windows machine and get a list of printers without interrupting the user, this powershell command is quick and easy...

          Get-Printer | Format-Table
          

          Make it easier Get-Printer | FT

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post