#PowerTweet – Get your PowerShell session history into a text file

By | July 13, 2012

Recently I have been involved in some repetitive processes using PowerShell that revolved around calling previously dot sourced scripts and functions several times but in a way that did not lend itself to scripting.

Although I love the PowerShell F7 trick (have you tried it yet?) I wanted to get the session history into a text file for use and for posterity.

Getting session history is easy –

Getting session history as a list of issued command lines is also easy –

PowerShell piping then lets us jab this to a file and then open the file in Notepad –

Throw in some alias and get a little economical with piping and we have ourselves a #powertweet !

Cool huh?

The first rocking #powertweet !

more to follow…

Leave a Reply

Your email address will not be published. Required fields are marked *