I am looking for the relevance to get the details of Disk information’s and its corresponding drive partitions
Example of O/P :
IBM 2107900 Multi-Path Disk Device, 1019 MB & Partition Drive 'UnKnown ’
IBM 2107900 Multi-Path Disk Device, 5199 MB & Partition Drive ‘E:-5199 MB’
IBM ServeRAID M1018 SCSI Disk Device, 25145 MB & Partition Drive ‘Q:-25145 MB’
IBM ServeRAID M1018 SCSI Disk Device, 25145 MB & Partition Drive ‘C:-12573 MB’,‘D:-12570 MB’
I used below relevance found in the same forum and its o/p which gives only the disk information
if (exists wmi) then (string value of property “caption” of it, (string value of property “size” of it as integer / 1024/1024/1024) as string & " GB") of (select objects “Caption, size from Win32_DiskDrive” of wmi) else nothings
IBM 2107900 Multi-Path Disk Device, 1019 MB
IBM 2107900 Multi-Path Disk Device, 5199 MB
IBM ServeRAID M1018 SCSI Disk Device, 25145 MB
IBM ServeRAID M1018 SCSI Disk Device, 25145 MB
Can any one help me to find the appropriate relevance I am looking for!
With Win32_LogicalDisk you can get size and Drive letter.
if (exists wmi) then (string value of property "caption" of it,string value of property "SystemName" of it, (string value of property "size" of it as integer / 1024/1024/1024) as string & " GB ", (string value of property "freespace" of it as integer / 1024/1024/1024) as string & " GB") of (select objects "Caption,FreeSpace,SystemName,Size from Win32_LogicalDisk" of wmi) else nothings