Is it possible to have windows log every command I type & the output I see on the console? Sometimes I find that I want to see what I did 2 hours ago just to be sure I typed a certain parameter in correctly.
Yes. You can use
You have given me the idea to put that in my PowerShell profile so that it starts automatically. This is what I have come up with:
Note: I prepared this answer, and then realized you are probably asking specifically about commands executed within PowerShell. Rather than erase my effort, I am going to post in case it help someone looking at doing the same thing within DOS. Doing a bit of reading, it looks like @dangph has probably given the correct answer for PowerShell.
To log commands to a file:
This page explains in details, but in a nutshell you can pipe your commands to a file of choice before closing your DOS emulator. You wouldn't have to do this until after you're done (not sure if buffer comes into play with large volume of commands)
To log command output to a file:
You would probably want something like...
Perhaps someone can improve or suggest a more user-friendly solution to do both (append command and results) at once, as statements are executed.