Thursday, July 27, 2006

How to capture a PowerShell terminal session

Just found about this cmd-let that captures all the input/output in Powershell

to start it simply type:

Start-Transcript

it will tell you where the transcript is being stored, by default it creates a text file on your "c:\documents and settings\user\..." folder, but you can specify where you want the transcript to be stored just passing a file name after the cmd-let, you can also pass -append so that if the file exists, it keeps adding to it

To stop it:

Stop-Transcript

This is kinda the equivalent to the unix script command

technorati tags:

No comments: