Skip to content

Instantly share code, notes, and snippets.

@jeffgreenca
Created November 30, 2015 18:40
Show Gist options
  • Save jeffgreenca/cbe681975f7c4e4929dc to your computer and use it in GitHub Desktop.
Save jeffgreenca/cbe681975f7c4e4929dc to your computer and use it in GitHub Desktop.
#Using WMI for Legacy print servers (prior to 2012R2)
gwmi Win32_Printers | select name,portname,network,sharename,status,systemname,published,location,printerstatus,drivername,description,comment,deviceid | export-csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment