3

There is script command on GNU/Linux machine which allows to capture all command line activity into a file . This is really helpful tool especially when we learn something new and we want to save the commands and their output for future reference.

I am currently learning the Git on Windows PowerShell terminal and I wanted to capture all the commands and their output in a file for future reference.

Is there any way/command do achieve it on Windows PowerShell?

2 Answers 2

8

Try with Start-Transcript and Stop-Transcript cmdlet.

You can also use Start-Transcript for ISE Editor module because these CmdLet don't work natively in ISE.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks for the the site PowerTheShell.com, there are plenty of good things inside.
5

It exists standard CmdLets : Start-Transcript and Stop-Transcript.

You'll find more informations about these CmdLet in the associeted TechNet documentation.

2 Comments

I answered first, but @why answer is more complete.
no your answer is more complete because the documentation ( merci beaucoup mais c'est ton mérite moi je n'ai fait que répété ce que t'as dit en premier)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.