VBS Script to remove UpperFilters & LowerFilters Keys

AtYourService

Member
Reaction score
12
Location
CT
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' Script to Blow out the UpperFilters & LowerFilters Key
' Your CD drive or DVD drive is missing or is not recognized
' by Windows or other programs.
' http://support.microsoft.com/kb/314060
' will@whatsmypass.com
' 10/11/2009
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''


Const HKEY_LOCAL_MACHINE = &H80000002

strComputer = "."
Set objRegistry = GetObject("winmgmts:\\" & _
strComputer & "\root\default:StdRegProv")

strKeyPath = "SYSTEM\CurrentControlSet\Control\Class\{4D36E965-E325-11CE-BFC1-08002BE10318}"
strValueName = "UpperFilters"
objRegistry.GetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue

If IsNull(strValue) Then
Wscript.Echo "The UpperFilters registry key does not exist. Checking for LowerFilters key."
Else
Wscript.Echo "The UpperFilters key exists, now deleting & Checking for LowerFilters key."
DelKey = objRegistry.DeleteValue(HKEY_LOCAL_MACHINE, strKeyPath, strValueName)
if DelKey <> 0 then
WScript.Echo "Error deleting value: " & DelKey
else
WScript.Echo "Successfully deleted value: " & strValueName
end if
End If


strKeyPath = "SYSTEM\CurrentControlSet\Control\Class\{4D36E965-E325-11CE-BFC1-08002BE10318}"
strValueName = "LowerFilters"
objRegistry.GetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue

If IsNull(strValue) Then
Wscript.Echo "The LowerFilters registry key does not exist."
Else
Wscript.Echo "The LowerFilters key exists, now deleting."
DelKey = objRegistry.DeleteValue(HKEY_LOCAL_MACHINE, strKeyPath, strValueName)
if DelKey <> 0 then
WScript.Echo "Error deleting value: " & DelKey
else
WScript.Echo "Successfully deleted value: " & strValueName & vbCrLf & "Please Reboot."

end if
End If
 
Last edited by a moderator:
Although I have this as a regfile I love that you contribute with scripts, thanks!:cool:
 
heres your asm :)
filters.png

http://whatsmypass.com/filters.exe


can also be easily done in a batfile and reg file

filters.bat
REG DELETE HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E965-E325-11CE-BFC1-08002BE10318} /v UpperFilters
REG DELETE HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E965-E325-11CE-BFC1-08002BE10318} /v LowerFilters

filters.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E965-E325-11CE-BFC1-08002BE10318}]
"UpperFilters"=-
"LowerFilters"=-
 
Last edited by a moderator:
This "UpperFilters" and "LowerFilters" is a new term to me. Anyone care to explain?

A lot of times when you are working on a windows machine and the CD/DVD drives dont work or do not even show up this is the problem. There are entries in the registry for UpperFilters and LowerFilters that are in the key for the CD/DVD device. These can get corrupted, point to files that dont exist anymore, and just generally get in the way.

Removing these entries in the registry will bring the CD/DVD drives back to fully functional most of the time.
 
A lot of times when you are working on a windows machine and the CD/DVD drives dont work or do not even show up this is the problem. There are entries in the registry for UpperFilters and LowerFilters that are in the key for the CD/DVD device. These can get corrupted, point to files that dont exist anymore, and just generally get in the way.

Removing these entries in the registry will bring the CD/DVD drives back to fully functional most of the time.

Ahh, thanks. Very insightful, I love learning new terms :)
 
Back
Top