Registry Mirror
Skip to content

Feature request: Support for Windows 10 #2

Open

Description

We should backport Sudo to Windows 10. Ultimately, this shouldn't be too hard, but porting the settings app changes may be a bit of a pain.

This is internally, MSFT:48735673

Activity

  1. added
    Issue-Feature
    on Feb 6, 2024
  2. Jevil7452 commented on Feb 8, 2024

    @Jevil7452

    Sudo just runs on Windows 10. Configuration can be done via the command line tool itself.
    image
    So, that should clear up the first part of the problem. But I guess you would like to have a friendly config UI for it.

  3. zadjii-msft commented on Feb 8, 2024

    @zadjii-msft
    MemberAuthor

    Yep! sudo.exe doesn't do anything Windows 11-specific. The Settings app changes are the hardest part (since there was a pretty massive UI rejuv between 10 and 11).

  4. zadjii-msft commented on Feb 9, 2024

    @zadjii-msft
    MemberAuthor

    When we get this backported to the Windows 10 branches, you can make sure we'll post here 😄

  5. gerardog commented on Feb 9, 2024

    @gerardog

    I see sudo.exe is (currently) portable and works on Windows 10. So why ship it with windows? Why not ship it as a Winget package?

  6. deleted a comment from 3052 on Feb 9, 2024
  7. zadjii-msft commented on Feb 9, 2024

    @zadjii-msft
    MemberAuthor

    Why not ship it as a Winget package?

    That's certainly something to look at going forward. I'd want to make sure that the GPO stuff we have in-box with the OS is also something that could be delivered via winget. Otherwise, we'd have to consider the scenario where someone can install sudo, but then there's no way to manage it from an organization's standpoint. Something for us to work out in the coming months ☺️

  8. rbarbrow commented on Jun 30, 2024

    @rbarbrow

    Any update on the winget front?

  9. zadjii-msft commented on Jul 1, 2024

    @zadjii-msft
    MemberAuthor

    Okay I definitely get that it's valuable - but I'm gonna go ahead and delete links to 3p builds of sudo. Sorry, I just think it's a terrible idea to have folks downloading builds from potentially untrusted third parties. Seems like a recipe for a supply chain vulnerability.

    I'm back from vacation this week1. Getting officially signed installers up on our releases page and winget is my priority this month.

    Footnotes

    1. though, it's a pair of short weeks for me. So, things will be a bit slower than usual ↩

  10. LeonardoIz commented on Jul 1, 2024

    @LeonardoIz
  11. zadjii-msft commented on Jul 1, 2024

    @zadjii-msft
    MemberAuthor

    IMO: Doesn't matter if it's not changed now. In the wake of the xz thing, I'm not gonna have folks take any chances on untrusted third-parties. Even ones that are well intended now may well later become compromised.

  12. Neustradamus commented on Jul 27, 2024

    @Neustradamus

    It will be nice to have for Windows 10 and Windows Server too.

  13. git-78 commented on Jan 4, 2025

    @git-78

    We are now 11 months after. Any news? What's about to publish an exe version, here or through winget ?

  14. sebma commented on Aug 6, 2025

    @sebma

    Sudo just runs on Windows 10. Configuration can be done via the command line tool itself. image So, that should clear up the first part of the problem. But I guess you would like to have a friendly config UI for it.

    Kris (@Jevil7452) I see no sudo github release there : how did you "install" this sudo on Windows 10 ?

  15. Jevil7452 commented on Aug 6, 2025

    @Jevil7452

    Take the EXE from Windows 11.

  16. sebma commented on Aug 12, 2025

    @sebma

    Kris (@Jevil7452) OK Thanks, I'll do this tomorrow :

    copy $(gcm sudo).source -PassThru | Compress-Archive -DestinationPath sudo-W11.zip -f
    rm sudo.exe
  17. sebma commented on Aug 13, 2025

    @sebma

    Kris (@Jevil7452) As you suggest, I just copied sudo.exe from Windows 11 into my Windows 10 and here is what I get :

    Image
    Sudo is disabled on this machine. To enable it, go to the Developer Settings page in the Settings app
    

    But I see no Enable sudo parameter in the Developer Settings of my Windows 10 :

    Image
  18. plutonium-239 commented on Aug 13, 2025

    @plutonium-239

    Maybe this can help? : https://www.elevenforum.com/t/enable-or-disable-sudo-command-in-windows-11.22329/
    It includes 2 methods other than the settings UI (through the CLI and through the registry)

  19. sebma commented on Aug 13, 2025

    @sebma

    We have two users on Windows : a standard user and an admin user.

    After typing these 2 commands as an administrator :

    PS C:\WINDOWS\system32> sudo config --enable enable
    Sudo is currently in Inline mode on this machine
    PS C:\WINDOWS\system32> sudo config --enable forceNewWindow
    Sudo is currently in Force New Window mode on this machine
    PS C:\WINDOWS\system32>

    And now I get this when I get back to the normal user (another user) :

    PS C:\> sudo cmd
    You are not allowed to run sudo
    PS C:\>

    Unfortunenatly, there is no -u | --user {username} Run as the specified user. Asks for password. For local admins shows UAC unless '-i Medium' option like in the gerardog gsudo.

    Related #127

  20. plutonium-239 commented on Aug 14, 2025

    @plutonium-239

    I guess that depends on the implementation itself, saw the issue.

    If you used it as the user with admin privileges but from a non-admin shell, does it let you escalate?

  21. sebma commented on Aug 28, 2025

    @sebma

    If you used it as the user with admin privileges but from a non-admin shell, does it let you escalate?

    Samarth Bhatia (@plutonium-239) Didn't have the time, they had already schedule the upgrade of my laptop upto Windows 11.

    Maybe someone else with a Windows 10 can test what you asked.

  22. Jy-EggRoll commented on Oct 26, 2025

    @Jy-EggRoll

    Any updates? The experience of publishing and retrieving sudo using winget should be quite good, which could simplify the operation of many Windows CLI programs.

  23. iamqiz commented on Sep 9, 2026

    @iamqiz

    Yep! sudo.exe doesn't do anything Windows 11-specific. The Settings app changes are the hardest part (since there was a pretty massive UI rejuv between 10 and 11).

    Mike Griese (@zadjii-msft) why not release the first version sudo for win10 without any UI settings? it is a CLI tool, I think no need to design settings GUI for it,it should be configured via the command line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Feature

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions