Home > PowerShell > Log the commands your are executing in PowerShell

Log the commands your are executing in PowerShell


If you want to log all the commands executing through powershell to a text file, you can use “strat-transcript” cmdlet
Usage:

Start-Transcript c:your-folder-pathpslogging.txt

This starts logging all the commands you execute from powershell window to text file. This is very help when you are making critical changes.

No related content found.

Categories: PowerShell
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>