Friday, January 17, 2014

Windows -- Find a Physical Device Id of a Harddisk

Problem

You want to find a device if of a hard drive which is usually in form \\.\<devicename>

Solution

You can use WMI on Windows:

wmic path Win32_diskdrive get deviceid

No comments: