I'm trying to compile a list of all printers connected via USB within my company, ideally along with the computers they're connected to. I've been using the 'Printers and Scanners' add device option, but I'm not sure how to extract this information. I've dabbled in some PowerShell scripts that I've found online, but as I'm just three days into learning PowerShell, I'm having a tough time getting it to work. Any advice would be greatly appreciated!
3 Answers
You might want to start by getting a list of all the computers in your network. Then, you can ask each computer for its installed printers using PowerShell commands. A useful resource for this is the [Server Fault link](https://serverfault.com/questions/419866/list-all-printers-using-powershell). Also, just a quick reminder, don’t forget to leverage your creative side! 😄
You could also set up a PowerShell script that checks printers across a list of computers from a CSV file. The script should log the results, which you can then sort in Excel. Just keep in mind it’s untested, so you might need to tweak it. But hey, it gives you a solid starting point!
For just listing USB-connected printers, you can try the command: `Get-Printer | Where-Object portname -like usb*`. You’ll need to run it on each computer, though—consider using remoting options or an RMM tool if you have that set up.
Related Questions
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures