Read carefully and follow the steps to recover your files succesfully or your data can corrupt too easily! (This includes Windows essential files)
(I tested on Windows 7)
(Reuploaded)
-
You will see this message
Pic1
-
Now, insert your windows installation cd
-
After setting your preferences go to "Repair your computer"
-
Go to the "Recovery Tools"
-
Select "Startup Repair"
-
Wait until the tool repair the startup errors
-
Restart the computer selecting the "Finish" button
-
Now in the message you will see many spaces before "Ooops!...", that is a good signal!
Pic 2
-
Restart the computer and repeat the 3rd and 4th steps
-
If you see "Windows 7" on the OS list select it
Pic 3
-
Use again the "Recovery Tools" and click "Next"
-
Start Command-Prompt
-
Type this commands: bootrec /fixmbr, bootrec /fixboot and bootrec /rebuildbcd
Pic 4
(As you can see, my main drive is E:, if you can see your main drive go to it and in %TEMP% delete the files to ensure the .bat dont overwrite the mbr again, is allocated on a folder with the name like 4D0E.tmp)
- Before restart you will make a batch-file with this commands:
REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoViewonDrive" /f
REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "Payload" /f
REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoDrives" /f
schtasks /delete /TN BSODPayload /f
rd %temp% /s /q
REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "PromptOnSecureDesktop" /t REG_DWORD /d "0" /f
REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "ConsentPromptBehaviorAdmin" /t REG_DWORD /d "0" /f
REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "EnableLUA" /t REG_DWORD /d "1" /f
REG DELETE "HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layout" /v "Scancode Map" /f
REG ADD "HKCU\Control Panel\Mouse" /v SwapMouseButtons /d "0" /f
REG DELETE "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "DisableTaskMgr" /f
Insert it on a USB stick or into any other removable device
-
Now restart your computer
-
If you see the "Computer" category you cannot see your hdd only the removable device
Pic 5
-
Quickly open the File Explorer and run the batch-file with administrator privileges (Close any other window, ensure you close the windows of powershell)
-
Restart your computer again
When you log on, your drives will be back and your files restored!!
Pic 6