Get a list of drive letters and types from the registry

answer

When it comes to managing the Windows operating system, many IT administrators rely on the Windows Registry to find the information they need. This is true for getting a list of drive letters and types from the Registry as well. The Registry contains detailed information about the hardware and software configuration of a Windows system, including the drive letters and types for each drive.

To access the Registry, open the Run dialog box (Windows key + R) and type “regedit”. This will open the Registry Editor. You can then navigate to the following key:

HKEY_LOCAL_MACHINE\\SYSTEM\\MountedDevices

This key contains entries for each drive installed in the system. Each entry has a name that follows a specific pattern: \\DosDevices\\[drive letter] (e.g. \\DosDevices\\C). To get a list of drive letters, simply look at the entries in this key.

To get the type of each drive, take a look at the “type” value for each entry. This value will indicate whether the drive is a hard drive, CD-ROM, floppy drive, etc. The following are the different values that the “type” value can take:

• 0x00000001 – Hard disk
• 0x00000002 – CD-ROM
• 0x00000004 – Floppy disk
• 0x00000008 – Network drive
• 0x00000010 – RAM disk
• 0x00000020 – Other type of drive

Once you have the list of drive letters and types, you can use them to manage the drives in the system. For example, you can use the list to quickly identify which drives are hard disks and which are floppy disks.

It is important to note that the Registry is not the only source of information about drive letters and types. You can also use the Device Manager to view this information. To open the Device Manager, open the Run dialog box (Windows key + R) and type “devmgmt.msc”. This will open the Device Manager. From the Device Manager, you can view the list of drives and their types.

In conclusion, getting a list of drive letters and types from the Windows Registry is a fairly straightforward process. All you need to do is open the Registry Editor and navigate to the MountedDevices key. From there, you can view the list of drive letters and types. Additionally, you can use the Device Manager to view the list of drives and their types.

Inquire Now

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Find your next full or part-time role here

ScaleDesk can either help you find your next full time gig or a part time side gig where you can create extra income!

Onboard with us once
Skip HR screening and go to the final interview with with only your resume and a video interview you never have to redo
Get paid electronically every month for the hours you work
We will be your reference even if you work for us once

IT Teams: Use ScaleDesk to augment your team

Schedule Demo