Access to CD/DVD Drive is Denied through Windows 7 Explorer (Permission Problem)
Solution 1:
This behavior is very puzzling, so all I can offer are some hints and more questions.
It would help to know whether the CD/DVD drive is shared. If it is, maybe unsharing can help.
Second, whether you have a CD-burning software installed, such as Nero. You might try to uninstall such software to see if this makes a difference.
Third, run gpedit.msc and check Computer Configuration / Administrative Templates / System / Removable Storage Access. Verify that "CD and DVD: Deny read access" is disabled or not configured. In effect, all the options should be not configured.
You might also try to see what happens with "sfc /scannow" as described in
How to Repair Windows 7 System Files with System File Checker.
The last resort is following How to Do a Repair Install to Fix Windows 7, which will refresh your Windows files without requiring the reinstallation of applications.
Some anti-virus scans might also be useful.
Solution 2:
Well, it turns out that I was right; it was indeed the missing Properties
key in HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E965-E325-11CE-BFC1-08002BE10318}
. It took several steps to fix, but actually not that long overall (especially compared to the three or so weeks I’ve been living with and working around the problem).
- Grabbed a an offline copy of the
SYSTEM
hive from my previous installation of Windows-7 (the backup in%systemroot%\System32\Config\RegBack
has the same problem) - Mounted it in my current copy (
> reg load hku\z system
) - Ran Regedit and navigated to
HKU\z\SYSTEM\CurrentControlSet\Control\Class\{4D36E965-E325-11CE-BFC1-08002BE10318}
- Opened the permissions dialog for the
Properties
key, ignoring the errors and warnings about not being allowed to view permissions for the key - Switched to Owner tab and set permission to myself
- Switched to main tab and added myself to the ACL and assigned full-control
- Refreshed and successfully viewed the
Properties
key and its contents - Exported the key to a .REG file
- Unmounted the backup
SYSTEM
hive (> reg unload hku\z
) - Edited the .REG file to change the key (
HKEY_USERS\z
->HKEY_LOCAL_MACHINE
) - Imported the updated .REG file
- Navigated to
HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E965-E325-11CE-BFC1-08002BE10318}
in the registry - Opened permissions dialog for
Properties
(no errors this time) - In Owners tab, switched owner from myself to the virtual user
SYSTEM
- In main tab, removed myself from permissions list and made sure
SYSTEM
has full access (iirc, it already did) - Refreshed, unable to view key anymore (that’s good), closed Regedit
- Opened Device Manager
- Uninstalled optical (CD/DVD) drives
- Rebooted
- Inserted a disc to test, observed that it loaded without suddenly turning into a hard-disk, opened the disc in Explorer successfully.
It works correctly now (I can watch a DVD without having to rip it to the hard-drive or running the player in administrator mode, or I can install a game or program without having to open an admin command-prompt to install or even copy the whole disc to the HD).
I guess my instincts were correct from the start. If I had the time—um, at the time—I would have rolled up my sleeves and dug into that inaccessible key like I usually do. Thanks to harrymc for insisting on the key being accessible and pushing me to copy it.
(I’m still not sure what caused the problem in the first place. I do recall that there were other issues with the optical drives just before the key got deleted—Device Manager had kept marking them with an error/warning—and I recall trying various ways to forcibly uninstall the drives in an attempt to get Windows to detect and reinstall them correctly. It stands to reason that one of the forced uninstallations somehow managed to delete the key; it didn’t exactly improve the situation. On the bright side, the drives are no longer marked with warnings in Device Manager.)
Solution 3:
Today there was one 13-byte file on a CD I couldn't read on windows 10 home. However after creating a ISO-file (using BurnAware), I was able to extract it from there (using WinRAR).