Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Run] Ability to execute system/OS commands like shutdown #2408

@thexamlguy

Description

@thexamlguy

As per this twitter conversation, it would be nice to have the ability to execute system commands such as sleep, shutdown ,and switch user account from within the launcher via the use of friendly keywords.

Some keyword examples:
"sleep" - send the PC to sleep
"hibernate" - send the PC to sleep
"shutdown" - shut the PC down
"switch user" - switch user account

As current if we search for Sleep from within Windows Search we are only given the option to view Sleep and power settings. It is possible to run such commands from Win + R, although our command will instead look like this rundll32.exe powrprof.dll,SetSuspendState 0,1,0, not quite user friendly to be honest! :)

Screenshot taken from the twitter conversation showing how we could prioritize the UI for common Windows system commands above the search result.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Help WantedWe encourage anyone to jump in on these and submit a PR.Idea-EnhancementNew feature or request on an existing productProduct-PowerToys RunImproved app launch PT Run (Win+R) WindowResolution-Fix CommittedFix is checked in, but it might be 3-4 weeks until a release.

    Type

    No type

    Projects

    Status

    ⚠️Needs Walkthrough

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions