Skip to content

Instantly share code, notes, and snippets.

@wdormann
Last active July 28, 2023 01:45
Show Gist options
  • Star 13 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save wdormann/fca29e0dcda8b5c0472e73e10c78c3e7 to your computer and use it in GitHub Desktop.
Save wdormann/fca29e0dcda8b5c0472e73e10c78c3e7 to your computer and use it in GitHub Desktop.
Disable Windows Explorer file associations for Disc Image Mount (ISO, IMG, VHD, VHDX)
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\.iso]
[-HKEY_CLASSES_ROOT\Windows.IsoFile\shell\mount\command]
[-HKEY_CLASSES_ROOT\.img]
[-HKEY_CLASSES_ROOT\.vhdx]
[-HKEY_CLASSES_ROOT\.vhd]
[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.img]
[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.iso]
[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.vhd]
[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.vhdx]
@cquresphere
Copy link

What about other disc image format? (.dmg;.cso;... etc.)
Are they less danger?
https://fileinfo.com/filetypes/disk_image

I would add:
[-HKEY_CLASSES_ROOT\Windows.vhdFile\shell\mount\command]

@wdormann
Copy link
Author

wdormann commented Mar 8, 2023

Windows doesn't support .DMG or .CSO files.
If you have an example of a disk image that isn't listed above, it's be worth mentioning it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment