From a2bf72d84fa8f9f82ab6115ff24df23cf961de67 Mon Sep 17 00:00:00 2001 From: dyphire <61936050+dyphire@users.noreply.github.com> Date: Sat, 14 Dec 2024 18:12:00 +0800 Subject: [PATCH] winroot: fix wmic being deprecated wmic disabled by default since Win11 24H2 --- addons/winroot.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/winroot.lua b/addons/winroot.lua index 13da117..b704bc7 100644 --- a/addons/winroot.lua +++ b/addons/winroot.lua @@ -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