October 23rd, 2015

PowerTip: Record Commands and Output from PowerShell

Doctor Scripto
Scripter

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.

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.