mirror of
https://github.com/microsoft/PowerToys
synced 2024-11-21 15:53:19 +00:00
[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
This commit is contained in:
parent
70d3d5f16e
commit
ca97e01d59
@ -61,7 +61,7 @@ namespace Microsoft.PowerToys.Run.Plugin.System.Components
|
|||||||
IcoPath = $"Images\\restart.{iconTheme}.png",
|
IcoPath = $"Images\\restart.{iconTheme}.png",
|
||||||
Action = c =>
|
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
|
new Result
|
||||||
|
Loading…
Reference in New Issue
Block a user