Capture your Powershell session

Never again will you be reaching for the swear box after writing some decent Powershell and closing the window before saving.

 

Just add the following to each new session;

PS > Start-Transcript (will be written to your profile – i.e C:\Users\Documents\Powershell_transcript.******.txt)

 

Powershell speaks…if you ask nicely enough!

How cool would it be if ‘Mr Windows Server’ could find the time to notify you that your Powershell script has finished? Well, he can, just add this to your script, ramp up the speakers and you have a new friend letting you know when he’s done!

$MrWindows = new-object -com SAPI.SpVoice
$MrWindows.Speak( “Farm Configuration completed!”, 1 )

 or

$Voice = new-object -com SAPI.SpVoice
$Voice.Speak( “Bore off, I am trying to watch the X Factor!”, 1 )