How can I view command prompt history after the window is closed on Windows 10?
I saw in the morning a command prompt window for just one second. After the command finished the window was closed.
I would like to see, what command was run before it closed. Is it possible?
I know, I can see prompt history, if I press F7, but this only works until the command prompt window is closed.
I ran my virus killer applications (Malwarebytes and Windows Defender), but I did not get any result.
I think that was a virus or an undetected malware, that's why so important to me what's going on in the background. More so I am afraid because I downloaded an application from a untrusted source. But I don't want to remove this application, I would like to explore what it does to my system.
Install ConEmu and do the following:
- Press Win + Alt + P
- Go to "Features"
- Enable "Log console output (*)"
- Clear the line below "Log console output (*)" and change it to "%userprofile%\ConEmuLogs"
- Press the button which is at the top right. It should close or ConEmu might give you an error (ignore it unless it is about the log file)
- Close the tab you opened in ConEmu if it didn't close automatically.
- Press Win + R and enter "%userprofile%\ConEmuLogs"
- Press ENTER
- Find a file with the following format "ConEmu-YYYY-MM-DD-pNNNN.log"
- Open it w/ a text editor, like Notepad.
- This log file will contain all the commands run and their output.
- Please reply back to tell me if this worked for you and/or I misunderstood you. Have a nice day!