I want to find the key “Device Parameters’ under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\IDE.
But, the BD/DVD/CD ROM/Writers makes a different key in every system. Mine currently is HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\IDE\CdRomHL-DT-ST_DVDRAM_GH20NS15________________IL00____\5&15602d3e&0&0.1.0\Device Parameters.
But I want to search every subkey under IDE and under BD/DVD/CD ROM/Writers to get the device parameters. There is a binary value DefaultDVDregion and i want to set it to 0 for every BD/DVD/CD ROM/Writers.
I’d like to do this in VBScript.
This code will loop through all the keys in
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\IDEand, for each key, look inside it to print out the DWORD value ofDefaultDvdRegion.It’s not my finest code, but should give you what you are looking for. On my machine, I get the following output:
Which makes sense, because my DVD drive has a region code of 2 (Europe) and my hard drive has no region code.