This code will return all unmounted mountpoints for EFI System partitions. How do I get the associated Disk# and partition # for each unmounted mountpoint ?.
The same as with Diskext.exe from Sysnternals.
Please advise. Thanks
#include <Array.au3>
global $aResult = ""
; Script Start - Add your code below here
$WMIService = ObjGet("winmgmts:\\.\root\cimv2")
$WMIVolumes = $WMIService.ExecQuery("Select * from Win32_Volume")
If IsObj($WMIVolumes) Then
For $Volume in $WMIVolumes
if ($Volume.Name = $Volume.DeviceID) and ($Volume.FileSystem = "FAT32") then
$aResult &= $Volume.FileSystem & ": " & $Volume.Name & @CR
endif
Next
_ArrayDisplay(StringSplit($aResult, @CR, 2), "Unmounted Partitions")
EndIf