'Restore CD/DVD's to Windows Explorer, Vista

On Error Resume Next

Dim WshShell, ObjShell, sMsg, sInput, sDone
Set WshShell = WScript.CreateObject("WScript.Shell")
If WScript.Arguments.length = 0 Then
Set objShell = CreateObject("Shell.Application")
objShell.ShellExecute "wscript.exe", """" & _
WScript.ScriptFullName & """" &_
 " RunAsAdministrator", , "runas", 1
Else

sMsg = "This script will fix your CD/DVD's not showing in Windows Explorer." & vbCr & vbCr _
 & "This script will Delete Registry Keys." & vbCr & vbCr _
 & "Adding information can unintentionally change or delete values and cause components to stop working correctly." _
 & "  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 and Vista 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"

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 and Vista Tweaks"
End If
End If