From ca97e01d59e0d5a29b32c708926fa14ddc5117ce Mon Sep 17 00:00:00 2001 From: Heiko <61519853+htcfreek@users.noreply.github.com> Date: Mon, 22 Jul 2024 16:43:42 +0200 Subject: [PATCH] [PTRun][System]Support automatic logon after reboot (#33740) ## Summary of the Pull Request Adds support for auto-logon after reboot when using the reboot command in system plugin. The behavior after reboot depends on the system setting for auto-logon after reboot/updates. https://learn.microsoft.com/windows-server/administration/windows-commands/shutdown --- .../Components/Commands.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.System/Components/Commands.cs b/src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.System/Components/Commands.cs index 9278e4941a..6d908771e5 100644 --- a/src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.System/Components/Commands.cs +++ b/src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.System/Components/Commands.cs @@ -61,7 +61,7 @@ namespace Microsoft.PowerToys.Run.Plugin.System.Components IcoPath = $"Images\\restart.{iconTheme}.png", Action = c => { - return ResultHelper.ExecuteCommand(confirmCommands, Resources.Microsoft_plugin_sys_restart_computer_confirmation, () => Helper.OpenInShell("shutdown", "/r /t 0")); + return ResultHelper.ExecuteCommand(confirmCommands, Resources.Microsoft_plugin_sys_restart_computer_confirmation, () => Helper.OpenInShell("shutdown", "/g /t 0")); }, }, new Result