PowerTip: Record Commands and Output from PowerShell


Summary: Learn how to easily record commands and output from commands in Windows PowerShell.  

Hey, Scripting Guy! Question How can I create a text file all commands and output from the commands that I use in Windows PowerShell?

Hey, Scripting Guy! Answer Use the Start-Transcript cmdlet.

To stop the transcript, use Stop-Transcript.

Note  In Windows PowerShell 5.0 on Windows 10, Start-Transcript also works inside the Windows PowerShell ISE.
In Windows PowerShell 4.0 and earlier it only works in the console.

Comments (0)

Skip to main content