Your CD drive or DVD drive is missing or is not recognized by Windows or other programs

This is a copy / excerpt of http://support.microsoft.com/kb/982116/en-us

Symptoms

Your CD drive or DVD drive is missing in "My Computer" or Windows Explorer and/or not recognized by Windows or other programs, so you cannot play or access a CD or DVD.

Mongomery Minds take : Malware installs filters on the drives. Remove two values

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E965-E325-11CE-BFC1-08002BE10318}\UpperFilters
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E965-E325-11CE-BFC1-08002BE10318}\LowerFilters

Watch that CLSID 4D36E965-E325-11CE-BFC1-08002BE10318. There are many similar values.

This issue might have occurred after you installed, uninstalled, or updated a program or you updated Windows.

Or, this issue may occur if one of the following conditions is true:

  • You upgrade the computer to Windows Vista or Windows 7
  • You install a Windows service pack
  • You install or uninstall a CD or DVD recording program
  • You uninstall Microsoft Digital Image
  • You are infected by malware

You may see one of the following error messages:

  • One of the following error messages appears when you view the CD drive or the DVD drive in Device Manager.

    Error message 1

    The device is not working properly because Windows cannot load the drivers required for this device (Code 31).

    Error message 2

    A driver for this device was not required, and has been disabled (Code 32 or Code 31).

    Error message 3

    Your registry might be corrupted. (Code 19)
  • An “error code 39” error message.
  • A message that resembles the following appears in the notification area (or device manager properties status):
    Windows successfully loaded the device driver for this hardware but cannot find the hardware device. (Code 41)

Resolution

Diagnose and fix the problem automatically

The Your CD or DVD drive can’t read or write media troubleshooter may automatically fix the problem described in this article.
This troubleshooter fixes many problems. learn more

Let me fix it myself

Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:

322756 How to back up and restore the registry in Windows

This problem is caused by two Windows registry entries that have become corrupted. To fix the problem, you have to use Registry Editor to delete the corrupted Registry entries. To use this method, you must be logged on to Windows as an administrator.

Windows 7 or Windows Vista

  1. Click Start
    Start button

    , and then click All Programs.

  2. Click Accessories, and then click Run.
  3. Type regedit, and then click OK.
    User Access Control permission

    If you are prompted for an administrator password or for a confirmation, type the password, or click Allow.

  4. In the navigation pane, locate and then click the following registry subkey:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E965-E325-11CE-BFC1-08002BE10318}
  5. In the right pane, click UpperFilters.
    Note You may also see an UpperFilters.bak registry entry. You do not have to remove that entry. Click UpperFilters only. If you do not see the UpperFilters registry entry, you still might have to remove the LowerFilters registry entry. To do this, go to step 8.
  6. On the Edit menu, click Delete.
  7. When you are prompted to confirm the deletion, click Yes.
  8. In the right pane, click LowerFilters.
    Note If you do not see the LowerFilters registry entry, unfortunately this content cannot help you any further. Go to the “Next Steps” section for information about how you can find more solutions or more help on the Microsoft Web site.
  9. On the Edit menu, click Delete.
  10. When you are prompted to confirm the deletion, click Yes.
  11. Exit Registry Editor.
  12. Restart the computer.

Now go to the “More Information” section.

Windows XP

  1. Click Start, and then click Run.
  2. In the Open box, type regedit, and then click OK.
  3. In the navigation pane, locate and then click the following registry subkey:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E965-E325-11CE-BFC1-08002BE10318}
  4. In the right pane, click UpperFilters.
    Note You may also see an UpperFilters.bak registry entry. You do not have to remove that entry. Click UpperFilters only. If you do not see the UpperFilters registry entry, you still might have to remove the LowerFilters registry entry. To do this, go to step 7.
  5. On the Edit menu, click Delete.
  6. When you are prompted to confirm the deletion, click Yes.
  7. In the right pane, click LowerFilters.
    Note If you do not see the LowerFilters registry entry, unfortunately this content cannot help you any further. Go to the “Next Steps” section for information about how you can find more solutions or more help on the Microsoft Web site.
  8. On the Edit menu, click Delete.
  9. When you are prompted to confirm the deletion, click Yes.
  10. Exit Registry Editor.
  11. Restart the computer.

Now go to the “More Information” section.

More information

Try to play or access a CD or DVD. If you can play or access a CD or DVD, you are finished with this article. If you still have a problem, try reinstalling programs that use the CD or DVD drive, or reinstall the drivers for the CD or DVD drive.

Reinstall programs that use the CD or DVD drive

Remove and reinstall drivers for the CD or DVD drive

Next steps

References

For more information about how to fix CD or DVD drive issue, see Microsoft Knowledge Base article 976187: FIX: The DVD drive is not recognized after you install Windows 7 or Windows Server 2008 R2

For a Windows 2000 version of this article, see Microsoft Knowledge Base article 270008: Cannot Access CD-ROM and “Code 31” Error Message in Device Manager After You Remove Adaptec Easy CD Creator from Your Computer.

Properties

Article ID: 982116 – Last Review: January 21, 2013 – Revision: 24.0
Applies to
  • Microsoft Windows XP Home Edition
  • Microsoft Windows XP Professional
  • Windows Vista Business
  • Windows Vista Business 64-bit Edition
  • Windows Vista Enterprise
  • Windows Vista Home Basic
  • Windows Vista Home Premium
  • Windows Vista Starter
  • Windows Vista Ultimate
  • Windows 7 Enterprise
  • Windows 7 Home Basic
  • Windows 7 Home Premium
  • Windows 7 Professional
  • Windows 7 Starter
  • Windows 7 Ultimate
Keywords:
kbsurveytest kbmatsfixme kbfixme kbexpertiseinter kbceip kbacwsurvey kbenv kb3rdparty kberrmsg kbhardware kbprb kbsound kbcip kbsmbportal kbhowto KB982116

Description of the Windows File Protection feature – Detailed

A copy / excerpt of Description of the Windows File Protection feature (kb222193)

For an Intro see Windows File Protection – Intro

 

SUMMARY

This article describes the Windows File Protection (WFP) feature.

MORE INFORMATION

Windows File Protection (WFP) prevents programs from replacing critical Windows system files. Programs must not overwrite these files because they are used by the operating system and by other programs. Protecting these files prevents problems with programs and the operating system.WFP protects critical system files that are installed as part of Windows (for example, files with a .dll, .exe, .ocx, and .sys extension and some True Type fonts). WFP uses the file signatures and catalog files that are generated by code signing to verify if protected system files are the correct Microsoft versions. Replacement of protected system files is supported only through the following mechanisms:

  • Windows Service Pack installation using Update.exe
  • Hotfixes installed using Hotfix.exe or Update.exe
  • Operating system upgrades using Winnt32.exe
  • Windows Update

If a program uses a different method to replace protected files, WFP restores the original files. The Windows Installer adheres to WFP when installing critical system files and calls WFP with a request to install or replace the protected file instead of trying to install or replace a protected file itself.

How the WFP feature works

The WFP feature provides protection for system files using two mechanisms. The first mechanism runs in the background. This protection is triggered after WFP receives a directory change notification for a file in a protected directory. After WFP receives this notification, WFP determines which file was changed. If the file is protected, WFP looks up the file signature in a catalog file to determine if the new file is the correct version. If the file is not the correct version, WFP replaces the new file with the file from the cache folder (if it is in the cache folder) or from the installation source. WFP searches for the correct file in the following locations, in this order:

  1. The cache folder (by default, %systemroot%\system32\dllcache).
  2. The network install path, if the system was installed using network install.
  3. The Windows CD-ROM, if the system was installed from CD-ROM.

If WFP finds the file in the cache folder or if the installation source is automatically located, WFP silently replaces the file and logs an event that resembles the following in the System log:

Event ID: 64001
Source: Windows File Protection
Description: File replacement was attempted on the protected system file c:\winnt\system32\ file_name . This file was restored to the original version to maintain system stability. The file version of the system file is x.x:x.x.

If WFP cannot automatically find the file in any of these locations, you receive one of the following messages, where file_name is the name of the file that was replaced and product is the Windows product you are using:

  • Windows File Protection
    Files that are required for Windows to run properly have been replaced by unrecognized versions. To maintain system stability, Windows must restore the original versions of these files. Insert your product CD-ROM now.

  • Windows File Protection
    Files that are required for Windows to run properly have been replaced by unrecognized versions. To maintain system stability, Windows must restore the original versions of these files. The network location from which these files should be copied, \\server\share, is not available. Contact your system administrator or insert product CD-ROM now.

Note If an administrator is not logged on, WFP cannot display either of these dialog boxes. In this situation, WFP displays the dialog box after an administrator logs on. WFP may wait for an administrator to log on in the following scenarios:

  • The SFCShowProgress registry entry is missing or is set to 1, and the server is set to scan every time that the computer starts. In this situation, WFP waits for a console logon. Therefore, the RPC server does not start until the scan is performed. The computer has no protection during this time.Note You can still map network drives, use system files, and use Terminal Services to log on to the server. WFP does not consider these operations as a console logon, and keeps waiting indefinitely.
  • WFP has to restore a file from a network share. This situation may occur if the file is not present in the Dllcache folder or if the file is corrupted. In this situation, WFP may not have the correct credentials to access the share from the network-based installation media.

The second protection mechanism that is provided by the WFP feature is the System File Checker (Sfc.exe) tool. At the end of GUI-mode Setup, the System File Checker tool scans all the protected files to make sure that they are not modified by programs that were installed by using an unattended installation. The System File Checker tool also checks all the catalog files that are used to track correct file versions. If any of the catalog files are missing or damaged, WFP renames the affected catalog file and retrieves a cached version of that file from the cache folder. If a cached copy of the catalog file is not available in the cache folder, the WFP feature requests the appropriate media to retrieve a new copy of the catalog file.

The System File Checker tool gives an administrator the ability to scan all the protected files to verify their versions. The System File Checker tool also checks and repopulates the cache folder (by default, %SystemRoot%\System32\Dllcache). If the cache folder becomes damaged or unusable, you can use either the sfc /scanonce command or the sfc /scanboot command at a command prompt to repair the contents of the folder.

The SfcScan value in the following registry key has three possible settings:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

The settings for the SfcScan value are:

  • 0x0 = do not scan protected files after restart. (Default value)
  • 0x1 = scan all protected files after every restart (set if sfc /scanboot is run).
  • 0x2 = scan all protected files one time after a restart (set if sfc /scanonce is run).

By default, all system files are cached in the cache folder, and the default size of the cache is 400 MB. Because of disk space considerations, it may not be desirable to maintain cached versions of all system files in the cache folder. To change the size of the cache, change the setting of the SFCQuota value in the following registry key:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon

WFP stores verified file versions in the Dllcache folder on the hard disk. The number of cached files is determined by the setting of the SFCQuota value (the default size is 0xFFFFFFFF, or 400 MB). The administrator can make the setting for the SFCQuota value as large or small as needed. Note that if you set the SFCQuota value to 0xFFFFFFFF , the WFP feature caches all protected system files (approximately 2,700 files).

There are two cases in which the cache folder may not contain copies of all protected files, regardless of the SFCQuota value:

  1. Not enough disk space.Under Windows XP, WFP stops populating the Dllcache folder when less than (600 MB + maximum size of the page file) of space is available on the hard disk.
    Under Windows 2000, WFP stops populating the Dllcache folder when less than 600 MB of space is available on the hard disk.
  2. Network Install.When Windows 2000 or Windows XP is installed over the network, files in the i386\lang directory are not populated in the Dllcache folder.

Additionally, all drivers in the Driver.cab file are protected, but they are not populated in the Dllcache folder. WFP can restore these files from the Driver.cab file directly without prompting the user for the source media. However, running the sfc /scannow command does populate the files from the Driver.cab file into the Dllcache folder.

If WFP detects a file change and the affected file is not in the cache folder, WFP examines the version of the changed file that the operating system is currently using. If the file that is currently in use is the correct version, WFP copies that version of the file to the cache folder. If the file that is currently in use is not the correct version, or if the file is not cached in the cache folder, WFP tries to locate the installation source. If WFP cannot find the installation source, WFP prompts an administrator to insert the appropriate media to replace the file or the cached file version.

The SFCDllCacheDir value ( REG_EXPAND_SZ ) in the following registry key specifies the location of the Dllcache folder.

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon

The default value data for the SFCDllCacheDir value is %SystemRoot%\System32 . The SFCDllCacheDir value can be a local path. By default, the SFCDllCacheDir value is not listed in the

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon

registry key. To modify the cache location, you must add this value.

When Windows starts up, WFP synchronizes (copies) the WFP settings from the following registry key

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Windows File Protection

to the following registry key:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon

Therefore, if the SfcScan , SFCQuota , or SFCDllCacheDir values are present in the

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Windows File Protection

subkey, the values take precedence over the same values in the

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon

subkey.

For more information about the WFP feature, click the following article number to view the article in the Microsoft Knowledge Base:

222473 Registry settings for Windows File Protection

For more information about the System File Checker tool in Windows XP and Windows Server 2003, click the following article number to view the article in the Microsoft Knowledge Base:

310747 Description of Windows XP and Windows Server 2003 System File Checker (Sfc.exe)

For more information about the System File Checker tool in Windows 2000, click the following article number to view the article in the Microsoft Knowledge Base:

222471 Description of the Windows 2000 System File Checker (Sfc.exe)

REFERENCES

For more information about the WFP feature, visit the following Microsoft Web site:

For more information about Windows Installer and WFP, visit the following Microsoft Web site:

APPLIES TO
  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Professional Edition
  • Microsoft Windows 2000 Datacenter Server
  • Microsoft Windows XP Professional x64 Edition
  • Microsoft Windows XP Home Edition
  • Microsoft Windows XP Professional
  • Microsoft Windows XP Media Center Edition 2005 Update Rollup 2
  • Microsoft Windows XP Tablet PC Edition
  • Microsoft Windows Server 2003, 64-Bit Datacenter Edition
  • Microsoft Windows Server 2003, Enterprise x64 Edition
  • Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
  • Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
  • Microsoft Windows Server 2003, Standard Edition (32-bit x86)
  • Microsoft Windows Server 2003, Web Edition
  • Microsoft Windows Small Business Server 2003 Premium Edition
  • Microsoft Windows Small Business Server 2003 Standard Edition
Keywords:
kbinfo KB222193

Montgomery Minds here: results:

The results are on the command line screen, and not in the event viewer (eventvwr.exe), but more results are in c:\Windows\Logs\CBS\CBS.log.

See post on sfc.exe for a bit more.