If a card was corrupted or formatted by Windows, you must write a "good" image of an identical-sized card back onto it using WinHex or similar disk-writing software. For S7-1200/1500 systems, you can use the TIA Portal Online Access to format a card correctly while it is inserted in the CPU. Summary of Tools S7-300 MMC Password Recovery Guide | PDF - Scribd
There are several third-party utilities (like S7ImgExplorer ) that can open a raw image file.
Use a raw disk imaging tool like to create a sector-by-sector image of the MMC card.
: This utility is a community-standard tool used specifically to open MMC images and retrieve the stored PLC password. S7imgRD & S7imgWR