<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Use PowerShell to Print Output Without Installing Print Drivers</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/01/08/use-powershell-to-print-output-without-installing-print-drivers.aspx</link><description>Use Windows PowerShell to print output from commands without installing print drivers.</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Use PowerShell to Print Output Without Installing Print Drivers</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/01/08/use-powershell-to-print-output-without-installing-print-drivers.aspx#3477764</link><pubDate>Mon, 30 Jan 2012 08:25:32 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3477764</guid><dc:creator>K_Schulte</dc:creator><description>&lt;p&gt;Hi Ed,&lt;/p&gt;
&lt;p&gt;well ..... I&amp;#39;ve got to aggree to Lionel as far as my empirical mind tells me, I&amp;#39;ve NEVER used the XPS printer! I even did forget that I&amp;#39;ve got that driver installed, but I have &amp;nbsp;:-()&lt;/p&gt;
&lt;p&gt;On the other side: I never used the Out-printer cmdlet either, so this was a good reminder!&lt;/p&gt;
&lt;p&gt;If I would use your approach I would get tired of typing “Microsoft XPS Document Writer” all of the time, too! But I&amp;#39;d like to go a step further and store the printername directly in $ptr&lt;/p&gt;
&lt;p&gt;$ptr = (gwmi win32_printer | ? { $_.name -match &amp;#39;xps&amp;#39;}).Name&lt;/p&gt;
&lt;p&gt;or even set it as may standard printer as long as I don&amp;#39;t have &amp;quot;something real&amp;quot; attached to my laptop:&lt;/p&gt;
&lt;p&gt;(gwmi win32_printer | ? { $_.name -match &amp;#39;xps&amp;#39;}).SetDefaultprinter()&lt;/p&gt;
&lt;p&gt;That&amp;#39;s really lazy :-)&lt;/p&gt;
&lt;p&gt;Klaus&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3477764" width="1" height="1"&gt;</description></item><item><title>re: Use PowerShell to Print Output Without Installing Print Drivers</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/01/08/use-powershell-to-print-output-without-installing-print-drivers.aspx#3474668</link><pubDate>Tue, 10 Jan 2012 07:27:39 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3474668</guid><dc:creator>The Point?</dc:creator><description>&lt;p&gt;It&amp;#39;s obviously not as cool as WMI - Duh!!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3474668" width="1" height="1"&gt;</description></item><item><title>re: Use PowerShell to Print Output Without Installing Print Drivers</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/01/08/use-powershell-to-print-output-without-installing-print-drivers.aspx#3474421</link><pubDate>Sun, 08 Jan 2012 15:53:50 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3474421</guid><dc:creator>Lionel</dc:creator><description>&lt;p&gt;What is the point of generating XPS when saving to a text file would give you the same advantages (it can be emailed to anyone, stored, archived, and printed easily), and some more (the files are smaller after compression, it&amp;#39;s portable even to non-Windows OSes, and there is no worry of the format being left behind and forgotten in a few years (1)).&lt;/p&gt;
&lt;p&gt;(1) &amp;#39;cause, seriously, XPS adoption has been really weak outside of Microsoft.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3474421" width="1" height="1"&gt;</description></item></channel></rss>