PowerShell script to list installed printers on a list of computers


I need a PS script that can list all installed printers using a list of computers. Something like what this script does but for more than 1 computer:
Get-WmiObject -class Win32_printer| ft name, systemName, shareName >> C:\result.txt

No Data
  • Not a problem at all, ForEach-Object is very useful for these kind of tasks. You might run into some timeout issues using the script as I provided it, nothing serious but if a computer cannot be contacted via WMI it will wait for a timeout before deciding to check the next system. If you will be running the script as-is against a large number of computers with many of them offline it might take a while for the script to complete. 

No Data