List “ALL” printers

Hi Power Pros,

I am a little stumped on this one which i thought would be easy. I am trying to list all the printers on a computer, check if there is a connection to the old print server and remove it.

The problem! this handy looking command does not list network printers.

 get-printer 

This little command is just as bad as the first one, does not show network printers.

 Get-WmiObject win32_printer 

I am starting to think there is not a command to list network printers installed on a computer. This will suck however i think i have found the correct registry key to delete with this command.

Get-ChildItem "Registry::HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionPrintV4 Connections" 

Before hacking away at the registry i was wondering if you guys know a better way.

Cheers

Edit Better wording, Formatting.

submitted by /u/Banzoola
[link] [comments]

Leave a Reply