Skip to content

Commit

Permalink
Code formatting in audit_windows.vbs.
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-unwin committed Sep 8, 2024
1 parent 1b5d5bc commit 0d623fe
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions other/audit_windows.vbs
Original file line number Diff line number Diff line change
Expand Up @@ -2647,14 +2647,14 @@ for each objPartition In colPartitions
set colLinks = objWMIService.ExecQuery("Select * FROM Win32_LogicalDiskToPartition",,32)
error_returned = Err.Number : if (error_returned <> 0 and debugging > "0") then wscript.echo check_wbem_error(error_returned) & " (Win32_LogicalDiskToPartition)" : audit_wmi_fails = audit_wmi_fails & "Win32_LogicalDiskToPartition " : end if
for each colLink in colLinks
if (inStr(colLink.Dependent, objPartition.DeviceID) > 0) then
partition_device_id_array = split(colLink.Antecedent, """")
partition_device_id = partition_device_id_array(1)
disk_index_array = split(partition_device_id, "#")
disk_index_new = disk_index_array(1)
partition_disk_index = mid(disk_index_new, 1, instr(disk_index_new, ",")-1)
disk_index_new = ""
end if
if (inStr(colLink.Dependent, objPartition.DeviceID) > 0) then
partition_device_id_array = split(colLink.Antecedent, """")
partition_device_id = partition_device_id_array(1)
disk_index_array = split(partition_device_id, "#")
disk_index_new = disk_index_array(1)
partition_disk_index = mid(disk_index_new, 1, instr(disk_index_new, ",")-1)
disk_index_new = ""
end if
next


Expand Down

0 comments on commit 0d623fe

Please sign in to comment.