PowerTip: Record Commands and Output from PowerShell

Doctor Scripto

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.


Discussion is closed.

Feedback usabilla icon