Learn about Windows PowerShell
Summary: Use Start-Transcript to create a record of Windows PowerShell commands.
How can I create an audit file of all commands that I typed during a Windows PowerShell session?
Use the Start-Transcript command:
How can I provide a custom name and location for my Windows PowerShell transcript?
Use the Start-Transcript command with the Path parameter:
Start-transcript -Path c:\fso\mytranscript.txt
How can I stop a transcript after I have started it?
Use the Stop-Transcript command:
What if I want to have a log of commands in Powershell ISE where apparently Start-Transcript doesn't work?