Looking for a way to detect USB printers, scanners, and keyfobs
Started by Me
Me
Looking for a way to detect USB printers, scanners, and keyfobs 21 September 2014, 03:28 |
Re: Looking for a way to detect USB printers, scanners, and keyfobs 21 September 2014, 09:37 |
Admin Registered: 18 years ago Posts: 3 518 |
Re: Looking for a way to detect USB printers, scanners, and keyfobs 22 September 2014, 11:02 |
Registered: 13 years ago Posts: 154 |
http://blogs.technet.com/b/heyscriptingguy/archive/2006/08/14/how-can-i-list-all-the-printers-on-a-remote-computer.aspx
Me
Re: Looking for a way to detect USB printers, scanners, and keyfobs 23 September 2014, 01:25 |
I have hundreds of machines to do, and it is every time we get a new client/customer. So I am auditing thousands of machines every year, across disparate environments
Re: Looking for a way to detect USB printers, scanners, and keyfobs 23 September 2014, 09:52 |
Registered: 13 years ago Posts: 154 |
Re: Looking for a way to detect USB printers, scanners, and keyfobs 23 September 2014, 09:56 |
Registered: 13 years ago Posts: 154 |
Re: Looking for a way to detect USB printers, scanners, and keyfobs 23 September 2014, 10:43 |
Admin Registered: 18 years ago Posts: 3 518 |
Me
Re: Looking for a way to detect USB printers, scanners, and keyfobs 24 September 2014, 09:29 |
SELECT Caption FROM Win32_Printer WHERE PortName LIKE "USB%"
This almost works for finding USB thumb drives - it seems to return a bit of junk though:
SELECT Caption FROM Win32_DiskDrive WHERE InterfaceType = 'USB'Sample 'junk' response:
Generic- Compact Flash USB Device, Generic- MS/MS-Pro USB Device, Generic- SD/MMC USB Device, Generic- SM/xD-Picture USB Device
Stumped on finding sample WMI to run within NETSCAN for USB attached scanners though ( AKA 'imaging devices' )
Me
Re: Looking for a way to detect USB printers, scanners, and keyfobs 25 September 2014, 08:56 |
Re: Looking for a way to detect USB printers, scanners, and keyfobs 25 September 2014, 09:55 |
Admin Registered: 18 years ago Posts: 3 518 |
Me
Re: Looking for a way to detect USB printers, scanners, and keyfobs 03 October 2014, 06:29 |
For some reason it does not work on a scanner that I know is installed/connected:
SELECT Caption FROM Win32_USBHub WHERE NOT Caption LIKE '%root hub%' AND NOT Caption LIKE '%generic%' AND NOT Caption LIKE '%composite device%' AND NOT Caption LIKE '%usb mass%' AND NOT Caption LIKE '%usb printing%'