Skip to content

Commit

Permalink
winroot: fix wmic being deprecated
Browse files Browse the repository at this point in the history
wmic disabled by default since Win11 24H2
  • Loading branch information
dyphire authored Dec 14, 2024
1 parent 27cd7f3 commit a2bf72d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/winroot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ local function get_drives()
name = 'subprocess',
playback_only = false,
capture_stdout = true,
args = {'wmic', 'logicaldisk', 'get', 'caption'}
args = {'fsutil', 'fsinfo', 'drives'}
})
if result.status ~= 0 then return msg.error('could not read windows root') end

Expand Down

0 comments on commit a2bf72d

Please sign in to comment.