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:
Start-transcript
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:
Stop-transcript