Sudo for Windows
Key point
Sudo has been added to Windows 11 for running commands with administrator privileges.
Details
The Sudo for Windows repository has been released, enabling elevated commands to be run directly from a regular terminal window on Windows.
This feature is available as an inbox feature on Windows 11 build 26045 and later, and on Insider builds it can be enabled via Settings > Developer Features.
This implementation is not a port of Unix/Linux's sudo, but rather a sudo concept reimplemented specifically for Windows. As a result, existing sudo scripts or documentation may not work as-is with the Windows version.
Project documentation is maintained on a separate site, aka.ms/sudo-docs, and documentation contributions are accepted through a dedicated repository under MicrosoftDocs.
Contributions should follow CONTRIBUTING.md, and for now contributors can also help with the scripts/sudo.ps1 wrapper script, which makes using sudo.exe more convenient in PowerShell.
Communication with the team is primarily through GitHub Issues, and users are asked to search for duplicate issues before filing a new one. Discussions is available for questions, and social channels can be accessed via each team member's account.
This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.
Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.