Greetings,
I have a issue with an analysis.
This is my analysis:
if (exists wmi) then (string value of property "caption" of it, (string value of property "size" of it)) of (select objects "Caption, size from Win32_DiskDrive" of wmi) else nothings
This is the output:
ST2000DM001-1CH164, 2000396321280
Samsung SSD 840 EVO 120GB, 120031511040
The problem is when I want to put more data in the analysis from different WMI’s I get duplicate results:
if (exists WMI) then (string values of selects "Caption from Win32_DiskDrive" of WMI), (string values of selects "Size from Win32_DiskDrive" of WMI), (string values of selects "Caption from Win32_DiskPartition" of WMI) else nothings
Results:
ST2000DM001-1CH164, 2000396321280, ( Disk #1, Partition #0 )
ST2000DM001-1CH164, 2000396321280, ( Disk #0, Partition #0 )
ST2000DM001-1CH164, 2000396321280, ( Disk #0, Partition #1 )
ST2000DM001-1CH164, 120031511040, ( Disk #1, Partition #0 )
ST2000DM001-1CH164, 120031511040, ( Disk #0, Partition #0 )
ST2000DM001-1CH164, 120031511040, ( Disk #0, Partition #1 )
Samsung SSD 840 EVO 120GB, 2000396321280, ( Disk #1, Partition #0 )
Samsung SSD 840 EVO 120GB, 2000396321280, ( Disk #0, Partition #0 )
Samsung SSD 840 EVO 120GB, 2000396321280, ( Disk #0, Partition #1 )
Samsung SSD 840 EVO 120GB, 120031511040, ( Disk #1, Partition #0 )
Samsung SSD 840 EVO 120GB, 120031511040, ( Disk #0, Partition #0 )
Samsung SSD 840 EVO 120GB, 120031511040, ( Disk #0, Partition #1 )
This is where I get too many results.
I have been looking at concatenation, but it requires singular result.
I am unsure how to proceed from here.
Thanks,
Jesper