Monday, November 6, 2017

How to save power shell session input and output to a file


Sometime while working on powershell we may want to save the ran command and output to a file .How do we save the session input and output to a file ?



To Start saving the transcript,

    start-transcript -Path <FileName>

To Stop saving the transcript

    stop-transcript




Regards
Bijesh

No comments:

Post a Comment