Windows 7 doesn't recognize CD-ROM

Once in a while something unexpected happens with the system. It was works fine for several months, CD-ROM was working properly, without glitches. Suddenly, for no apparent reason CD-ROM disappears from "Computer" and stops working altogether. Device Manager does detect CD-ROM, but says that it was installed with errors. BIOS does recognize it. If you delete CD-ROM from the "Device Manager", Windows 7 detects it again, but can not properly install the driver. The latest driver fails to install. Don't cry yourself into despair, this problem has a solution.
- Remove CD-ROM from Windows 7 Device Manager.
- Run regedit (Start → Run → regedit).
- Find in the registry the following key: /HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control\Class/{4D36E965-E325-11CE-BFC1-08002BE10318}
- Rename LowerFilters to something else, for example LowerFiltersTest.
- Close Registry editor.
- Reboot the computer.
- After rebooting, Windows 7 will find the CD-ROM and install its drivers as it did first on first try but this time successfully.
- If this strategy fails, do the same thing but with the parameter UpperFilters.
That's it! Nothing complicated, right? And most importantly, no need to reinstall the system!