WebNov 22, 2024 · 2 Answers. Sorted by: 3. Since you are using Windows 7, you can still utilize WMI to delete the printers. Otherwise the other alternatives are using methods from the .Net classes System.Printing or System.Drawing.Printing. But it looks like you just need to and another filter in your where block. Get–WMIObject Win32_Printer where ... WebThe Get-Printer cmdlet retrieves a list of printers installed on a computer. You can also use Get-Printer to retrieve the properties of a single printer, and then use that information …
How To List Installed Printers Using PowerShell
WebJan 16, 2013 · Get-WMIObject -class Win32_Printer -computer $printservername Select Name,DriverName,PortName Where-Object {$_.PortName -eq "IP_x.x.x.x"} Note that you might go ahead and run it without the Where-Object portion to see what the PortName output looks like but it should be similar to IP_10.10.10.10 or similar. WebSep 26, 2024 · If you are using PowerShell, you can use where ( Where-Object) clause, in your case it would look like: Get-Printer where {$_ -match 'Microsoft'} Then you can get filtered table of printers, if you need to get array of names it would be: (Get-Printer).name where {$_ -match 'Microsoft'} Share Improve this answer Follow hccfl electives
powershell - Add-Printer -ConnectionName …
WebTo get printer ip address, name using PowerShell, use below command. Get-Printer select Name,PortName,DriverName Export-Csv D:\Printers.csv -NoTypeInformation. In the … Web$printers = get-printer select name, drivername, portname foreach ($printer in $printers) { $ports = get-printerport $printer.portname select name, printerhostaddress $details = @ { printername = $printer.name drivername = $printer.drivername portname = $``ports.name ipaddress = $ports.printerhostaddress } WebJan 15, 2024 · This command first imports the Print Management module. Then, it uses the Get-PrintQueue cmdlet to get all printers connected to the Print Management Console, then loops through each printer and retrieves the name, IP address, serial number, and port, creating an object with the information. hcc flex sp-390