Export installed Printers to HTML

I wrote another useful PowerShell one liner to collect data for a network documentation. It lists the installed printers on a computer and writes it as formatted table to an html file.

PS C:\> Get-WmiObject win32_printer -computer ADRIAN | ? { $_.type -ne 1 } | sort name | ConvertTo-Html -prop Name,DriverName,PortName,Location > c:\out.html

Now just copy&paste the result from the file into your network docs, time saved!


0 Responses to “Export installed Printers to HTML”

  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: