Run a single Windows command with admin rights from your normal terminal without opening a new elevated terminal window.
Enable the sudo feature on Windows 11 through the Developer Features settings panel and start using it immediately.
Use the included PowerShell wrapper script to make sudo more convenient from a PowerShell terminal.
Report bugs or request features for the Windows sudo tool through the GitHub issue tracker.
Requires Windows 11 build 26045 or newer, enable in Settings under Developer Features.
Sudo for Windows is a tool that lets you run commands with administrator-level permissions directly from a regular, non-elevated terminal window. On most Windows setups, if you need to do something that requires admin rights, you typically have to open a new terminal as an administrator. This tool removes that friction by letting you prefix a command with "sudo" and run it with elevated privileges right where you already are. This is a Microsoft-built feature that shipped as part of Windows 11 starting with build 26045. If you are on a qualifying Windows 11 Insiders build, you can turn it on through the Windows Settings app under the "Developer Features" section. The repository here is where the team tracks bug reports and feature requests from the public. It is worth knowing that despite sharing a name, this is not the same thing as the sudo command found on Linux and Mac. Those are completely separate applications with different designs, different permission models, and different behavior. Scripts or instructions written for Linux sudo will not necessarily work the same way here, and some features from the Linux version are absent, while this Windows version may have features the Linux one does not. The project also includes a PowerShell helper script called sudo.ps1 that wraps the core sudo.exe tool to make it more convenient to use from PowerShell. Contributions to that script are accepted via the normal GitHub pull request process. Full documentation for the tool lives at a separate Microsoft documentation site linked from the repository.
← microsoft on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.