powershell - Get Lun numbers and corresponding names - windows -


i have list of names of luns including mountpoints. looking find corresponding lun numbers/ disk numbers (the same see on disk management) programming

disk 0  c: disk 1  d:  

any hints please - looking through powershell

i using wmi information. place in win32_diskdrive.

$drives = gwmi win32_diskdrive 

Comments

Popular posts from this blog

All overlapping substrings matching a java regex -

c++ - Using OpenSSL in a multi-threaded application -

php - Deleting/Renaming a locked file -