Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Create a Transcript of Commands in PowerShell

$
0
0

Summary: Learn how to create a transcript of all commands and associated output from within Windows PowerShell.

Hey, Scripting Guy! QuestionHow can I create an audit file of all commands typed during a Windows PowerShell session?

Hey, Scripting Guy! Answer Use the Start-Transcript command:

Start-transcript

Hey, Scripting Guy! Question But I tried to use Start-Transcript in the Windows PowerShell ISE and it did not work. I even tried this in Windows PowerShell 3.0, and still a no go. Am I doing something wrong?

Hey, Scripting Guy! Answer No you are not doing something wrong. The Windows PowerShell ISE does not support transcription. You can implement your own function to simulate transcription. An example appears in this Hey, Scripting Guy! Blog post, Create a Transcript of Commands from the Windows PowerShell ISE.


Viewing all articles
Browse latest Browse all 3333

Trending Articles