'Restore CD/DVD's to Windows Explorer, XP

On Error Resume Next

Dim WshShell, sMsg, sInput, sDone

Set WshShell = WScript.CreateObject("WScript.Shell")

sMsg = "This script will fix your CD/DVD's not showing in Windows Explorer." & vbCr & vbCr _
 & "This script will Delete Registry Keys." & vbCr & vbCr _
 & "If you do not trust the source of this information, do not add it to the registry."  & vbCr  & vbCr _
 & "Would you like to continue?"

sInput = MsgBox(sMsg, vbYesNo + vbInformation, "Paul's XP, Vista and Windows 7 Tweaks")
If sInput = vbYes Then 

WshShell.RegDelete "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E965-E325-11CE-BFC1-08002BE10318}\UpperFilters"
WshShell.RegDelete "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E965-E325-11CE-BFC1-08002BE10318}\LowerFilters"
WshShell.RegDelete "HKLM\SYSTEM\CurrentControlSet\Services\Cdr4_2K\"
WshShell.RegDelete "HKLM\SYSTEM\CurrentControlSet\Services\Cdralw2k\"
WshShell.RegDelete "HKLM\SYSTEM\CurrentControlSet\Services\Cdudf\"
WshShell.RegDelete "HKLM\SYSTEM\CurrentControlSet\Services\UdfReadr\"

sDone = "Your CD/DVD drives should now appear in Windows Explorer." & vbCr & vbCr _
 & "You may need to LogOff/On to see your CD/DVD drives or you may need to reboot your computer to see your CD/DVD drives." & vbCr & vbCr _
 & "This script was downloaded from www.paulsxp.com." 
MsgBox sDone, 64, "Paul's XP, Vista and Windows 7 Tweaks"
End If

