diff --git a/app/Input/InputDispatcher.cs b/app/Input/InputDispatcher.cs index 1f9f8ddd..ea9a0b52 100644 --- a/app/Input/InputDispatcher.cs +++ b/app/Input/InputDispatcher.cs @@ -949,7 +949,10 @@ namespace GHelper.Input if (string.IsNullOrEmpty(command)) return; try { - RestrictedProcessHelper.RunAsRestrictedUser(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.System), "cmd.exe"), "/C " + command); + if (command.StartsWith("shutdown")) + ProcessHelper.RunCMD("cmd", "/C " + command); + else + RestrictedProcessHelper.RunAsRestrictedUser(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.System), "cmd.exe"), "/C " + command); } catch (Exception ex) {