<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.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>Perserving Command History Across Sessions</title><link>http://blogs.msdn.com/b/powershell/archive/2006/07/01/perserving-command-history-across-sessions.aspx</link><description>&amp;lt;Edited 7/2/2006 to add tags and Categories&amp;gt; 
 Ben Winzenz didn't like the fact that Windows PowerShell did not maintain history lists between sessions ( http://winzenz.blogspot.com/2006/06/cool-mshpowershell-tidbit.html ) . We hear you Ben. Back</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Perserving Command History Across Sessions</title><link>http://blogs.msdn.com/b/powershell/archive/2006/07/01/perserving-command-history-across-sessions.aspx#10331031</link><pubDate>Wed, 18 Jul 2012 08:10:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10331031</guid><dc:creator>Sebastian Schucht</dc:creator><description>&lt;p&gt;You can als use the exit command if you add the following line:&lt;/p&gt;
&lt;p&gt;register-engineevent PowerShell.Exiting -action { bye }&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10331031" width="1" height="1"&gt;</description></item><item><title>re: Perserving Command History Across Sessions</title><link>http://blogs.msdn.com/b/powershell/archive/2006/07/01/perserving-command-history-across-sessions.aspx#10329434</link><pubDate>Thu, 12 Jul 2012 23:29:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10329434</guid><dc:creator>Marshall Neill</dc:creator><description>&lt;p&gt;For crying out loud. &amp;nbsp;Microsoft, a multi-billion dollar corporation creates the Power Shell and it doesn&amp;#39;t preserve the history across sessions. &amp;nbsp;You have to write a script. &amp;nbsp;Jesus, how freaking lame. &amp;nbsp;Make it save history by default. &amp;nbsp;Oh, that&amp;#39;s right, Linux is lame. &amp;nbsp;Can&amp;#39;t do it like they do it. &amp;nbsp;God forbid.&lt;/p&gt;
&lt;p&gt;Well enough of my rant, but I felt it needed to be said.&lt;/p&gt;
&lt;p&gt;If you don&amp;#39;t like what I just said, oh well. &amp;nbsp;You know what they say about opinions.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10329434" width="1" height="1"&gt;</description></item><item><title>re: Perserving Command History Across Sessions</title><link>http://blogs.msdn.com/b/powershell/archive/2006/07/01/perserving-command-history-across-sessions.aspx#10136263</link><pubDate>Thu, 03 Mar 2011 01:42:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10136263</guid><dc:creator>DerrickP</dc:creator><description>&lt;p&gt;Same here. I would like the arrow keys to scroll through the imported history. More details on how to use the event hook are here &lt;a rel="nofollow" target="_new" href="http://stackoverflow.com/questions/1438772/powershell-history-how-do-you-prevent-duplicate-commands"&gt;stackoverflow.com/.../powershell-history-how-do-you-prevent-duplicate-commands&lt;/a&gt;.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10136263" width="1" height="1"&gt;</description></item><item><title>re: Perserving Command History Across Sessions</title><link>http://blogs.msdn.com/b/powershell/archive/2006/07/01/perserving-command-history-across-sessions.aspx#10060244</link><pubDate>Fri, 10 Sep 2010 11:15:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10060244</guid><dc:creator>nat</dc:creator><description>&lt;p&gt;Thanks for the great little tutorial! I&amp;#39;m a UNIX/Linux user who is trying to get to grips with PowerShell.&lt;/p&gt;
&lt;p&gt;One thing I&amp;#39;ve not managed through your little tutorial is to get the arrow keys to work. So I can:&lt;/p&gt;
&lt;p&gt;1. export a session history&lt;/p&gt;
&lt;p&gt;2. close session&lt;/p&gt;
&lt;p&gt;3. import previous session history&lt;/p&gt;
&lt;p&gt;4. use the up-arrow key to get to a point in imported history&lt;/p&gt;
&lt;p&gt;1-3 works fine. I can do a get-history and see that all is imported, but 4 does not work! It only lets me access the current session history.&lt;/p&gt;
&lt;p&gt;Your help would be appreciated.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10060244" width="1" height="1"&gt;</description></item><item><title>re: Perserving Command History Across Sessions</title><link>http://blogs.msdn.com/b/powershell/archive/2006/07/01/perserving-command-history-across-sessions.aspx#10033602</link><pubDate>Thu, 01 Jul 2010 22:00:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10033602</guid><dc:creator>NA</dc:creator><description>&lt;p&gt;Still no normal resolution for history ? &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10033602" width="1" height="1"&gt;</description></item><item><title>And the event driven solution arrived</title><link>http://blogs.msdn.com/b/powershell/archive/2006/07/01/perserving-command-history-across-sessions.aspx#9575024</link><pubDate>Wed, 29 Apr 2009 08:02:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9575024</guid><dc:creator>Neil Fairall</dc:creator><description>&lt;p&gt;See &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/powershell/archive/2008/06/11/powershell-eventing-quickstart.aspx"&gt;http://blogs.msdn.com/powershell/archive/2008/06/11/powershell-eventing-quickstart.aspx&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9575024" width="1" height="1"&gt;</description></item><item><title>re: Perserving Command History Across Sessions</title><link>http://blogs.msdn.com/b/powershell/archive/2006/07/01/perserving-command-history-across-sessions.aspx#8972843</link><pubDate>Thu, 02 Oct 2008 07:40:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8972843</guid><dc:creator>Pat Richard</dc:creator><description>&lt;p&gt;Is there a way to import the data so that it's available when pressing F7?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8972843" width="1" height="1"&gt;</description></item><item><title>Random Thoughts  &amp;raquo; Blog Archive   &amp;raquo; MSH/Powershell Followup</title><link>http://blogs.msdn.com/b/powershell/archive/2006/07/01/perserving-command-history-across-sessions.aspx#8720882</link><pubDate>Fri, 11 Jul 2008 13:23:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8720882</guid><dc:creator>Random Thoughts  &amp;raquo; Blog Archive   &amp;raquo; MSH/Powershell Followup</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://winzenz.mobiforumz.com/2006/07/02/mshpowershell-followup/"&gt;http://winzenz.mobiforumz.com/2006/07/02/mshpowershell-followup/&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8720882" width="1" height="1"&gt;</description></item><item><title>random thoughts  &amp;raquo; MSH/Powershell Followup</title><link>http://blogs.msdn.com/b/powershell/archive/2006/07/01/perserving-command-history-across-sessions.aspx#8579605</link><pubDate>Sat, 07 Jun 2008 09:26:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8579605</guid><dc:creator>random thoughts  &amp;raquo; MSH/Powershell Followup</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://thought.mobiforumz.com/2006/07/02/mshpowershell-followup/"&gt;http://thought.mobiforumz.com/2006/07/02/mshpowershell-followup/&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8579605" width="1" height="1"&gt;</description></item><item><title>Commonality - The Command History in PowerShell</title><link>http://blogs.msdn.com/b/powershell/archive/2006/07/01/perserving-command-history-across-sessions.aspx#7927911</link><pubDate>Thu, 28 Feb 2008 06:12:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7927911</guid><dc:creator>Commonality - The Command History in PowerShell</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.winterdom.com/weblog/2008/02/28/TheCommandHistoryInPowerShell.aspx"&gt;http://www.winterdom.com/weblog/2008/02/28/TheCommandHistoryInPowerShell.aspx&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=7927911" width="1" height="1"&gt;</description></item></channel></rss>