In Windows 11, how to create a log of all the commands executed in the background?

Microsoft Windows

Active Members
Joined
Dec 10, 2024
Messages
11,924
I need to have a persistent log/history file for cmd.exe on windows which shows all the commands executed through cmd.exe. It does not matter it was directly opened through the "start" menu or called through a python script. What change shall I make so that all future commands that are executed through cmd.exe, irrespective of how it called, are logged in a file.

Continue reading...
 
Back
Top