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
-
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 } }
-
@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