You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
; Input parameter ....:ByRef $aDiskList = Array var for list of disks.
66
+
; Input parameter ....:ByRef $aDiskList = Array var for list of disks.
68
67
; ByRef $aPartitionList = Array var for list of partitions.
69
68
; [$bAddTableHeader = $DiskInfoWmi_TableHeader_Yes] = Should array tables have a header row. (Values: 0|1 or $DiskInfoWmi_TableHeader_Yes|$DiskInfoWmi_TableHeader_No)
70
69
; [$sFilterDiskType = $DiskInfoWmi_DiskType_All] = Which type of disk should be included in result. (Values: $DiskInfoWmi_DiskType_All|$DiskInfoWmi_DiskType_External|$DiskInfoWmi_DiskType_Removable|$DiskInfoWmi_DiskType_Fixed|$DiskInfoWmi_DiskType_Unknown)
71
-
; Output parameter ...:none
70
+
; Output parameter ...:none
72
71
; On WMI-Error .......: @error = 1
73
-
74
-
72
+
73
+
75
74
; Initialize function wide vars
76
75
Local$aDisks[0][12]
77
76
Local$aPartitions[0][13]
78
-
Local$iDiskArrayCount=0; Initialize counter to write some disk data later in correct array row.
79
-
Local$iPartArrayCount=0; Initialize counter to write partition data later in correct array row.
77
+
Local$iDiskArrayCount=0; Initialize counter to write some disk data later in correct array row.
78
+
Local$iPartArrayCount=0; Initialize counter to write partition data later in correct array row.
Local$oPartitions=$oWmiInstance.ExecQuery("ASSOCIATORS OF {Win32_DiskDrive.DeviceID='"&$oDisk.DeviceID &"'} WHERE AssocClass = Win32_DiskDriveToDiskPartition")
Local$oLogicalDisks=$oWmiInstance.ExecQuery("ASSOCIATORS OF {Win32_DiskPartition.DeviceID='"&$oPartition.DeviceID &"'} WHERE AssocClass = Win32_LogicalDiskToPartition")
0 commit comments