Skip to content

[Feature Request] Add Sudo Support on Windows #3541

@LunaticWasTaken

Description

@LunaticWasTaken

Description of the problem or steps to reproduce

Since Sudo wasn't really a thing on Windows, micro has no support for this, and will happily tell this to the user when trying to use:
image

However, since 24H2, Windows added sudo as an option. It behaves pretty similar, eg by running sudo <my-command> it would show a UAC prompt, and on success run my-command in an administrator instance of that commandline.

Additionally, even if 24H2 is not being used, GSudo is basically the exact same.

It would be a great addition to support sudo when either 24H2's Sudo or Gsudo is present.

Specifications

Commit hash: /
OS: Windows 11
Terminal: /

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions