<?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>PowerTip: Split PowerShell Output Between Console and Variable</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/10/04/powertip-split-powershell-output-between-console-and-variable.aspx</link><description>Learn an easy way to save Windows PowerShell output in a variable and still output to the console.</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: PowerTip: Split PowerShell Output Between Console and Variable</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/10/04/powertip-split-powershell-output-between-console-and-variable.aspx#3524344</link><pubDate>Fri, 05 Oct 2012 09:51:43 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3524344</guid><dc:creator>Walid Toumi</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;here another option:&lt;/p&gt;
&lt;p&gt;PS II&amp;gt; gsv | Tee-Object -var s&lt;/p&gt;
&lt;p&gt;PS II&amp;gt; $s&lt;/p&gt;
&lt;p&gt;PS II&amp;gt; ($s=gsv) &lt;/p&gt;
&lt;p&gt;PS II&amp;gt; $s&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3524344" width="1" height="1"&gt;</description></item></channel></rss>