Put this line as the final line in the autoexec so it will trigger during game boot-up: Go to gamedirprofilesautoexec.cfg and open the file using Notepad.
You will need to alter the game's autoexec, so you might want to make a back up of your Might and Magic 5 autoexec file before you mess up your FAT. I found a way to enable console in release version. If you've discovered a cheat you'd like to add to the page, or have a correction, please click EDIT and add it.
This page contains a list of cheats, codes, Easter eggs, tips, and other secrets for Heroes of Might and Magic V for PC.