<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>PowerShell.nu &#187; WMI</title>
	<atom:link href="http://www.powershell.nu/category/wmi/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.powershell.nu</link>
	<description></description>
	<lastBuildDate>Wed, 14 Jul 2010 22:17:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Get-PrinterInformation</title>
		<link>http://www.powershell.nu/2009/06/18/get-printerinformation/</link>
		<comments>http://www.powershell.nu/2009/06/18/get-printerinformation/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 18:41:04 +0000</pubDate>
		<dc:creator>Niklas Goude</dc:creator>
				<category><![CDATA[Client Management]]></category>
		<category><![CDATA[WMI]]></category>

		<guid isPermaLink="false">http://www.powershell.nu/?p=762</guid>
		<description><![CDATA[Gathering Printerinformation can be done through WMI. Win32_Printer contains information about printers that are used by a computer and Win32_PrinterDriver contains information about the printer drivers. We can combine these 2 WMI classes and retrieve information about both the printer and it&#8217;s drivers. This script checks for the following properties: Computer : Client1 Name : [...]]]></description>
			<content:encoded><![CDATA[<p>Gathering Printerinformation can be done through WMI. Win32_Printer contains information about printers that are used by a computer and Win32_PrinterDriver contains information about the printer drivers. We can combine these 2 WMI classes and retrieve information about both the printer and it&#8217;s drivers. This script checks for the following properties:</p>
<p />
<pre>
Computer             : Client1
Name                 : \\SERVER\SRV-FLOOR1-SV01
DefaultPrinter       : True
DriverName           : HP LaserJet 4250 PCL 6
DriverPath           : C:\Windows\system32\spo...
Driverdll            : UNIDRV.DLL
HorizontalResolution : 600
VerticalResolution   : 600
LocalPrinter         : False
PrintProcessor       : HPZPP4wm
Location             : GOT
Comment              : Company Printer
Description          : Printer on Floor 1
</pre>
<p>I&#8217;ve included a switch that let&#8217;s you pipe the information to a csv instead of displaying it to the host, and if you pipe an array of computer names to the script you can retrieve information from multiple computers.</p>
<p />
Running the Script:</p>
<p />
<pre>
<strong>
PS > .\Get-PrinterInformation.ps1 -Computer Client1 -ToCsv

PS > "Client1","Client2","Client3" |
>> ForEach { .\Get-PrinterInformation.ps1 -Computer $_ }
</strong>
</pre>
<p />
Here&#8217;s a link to the script.<br />
<a href="http://www.powershell.nu/wp-content/uploads/2009/06/get-printerinformation.ps1">Get-PrinterInformation.ps1</a></p>
<p />
]]></content:encoded>
			<wfw:commentRss>http://www.powershell.nu/2009/06/18/get-printerinformation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
