Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Create a Record of Your PowerShell Commands

$
0
0

Summary: Use Start-Transcript to create a record of Windows PowerShell commands.

Hey, Scripting Guy! QuestionHow can I create an audit file of all commands that I typed during a Windows PowerShell session? 

Hey, Scripting Guy! AnswerUse the Start-Transcript command:

Start-transcript

Hey, Scripting Guy! QuestionHow can I provide a custom name and location for my Windows PowerShell transcript? 

Hey, Scripting Guy! AnswerUse the Start-Transcript command with the Path parameter:

Start-transcript -Path c:\fso\mytranscript.txt

Hey, Scripting Guy! QuestionHow can I stop a transcript after I have started it?

Hey, Scripting Guy! AnswerUse the Stop-Transcript command:

Stop-transcript

 


Viewing all articles
Browse latest Browse all 3333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>