Last Updated on August 7, 2025 by Arnav Sharma
Microsoft’s latest addition to the Windows 11 Insider Preview Build 26052, “Sudo for Windows,” is a groundbreaking development for users and developers alike. This new command line tool is designed to enable users to run elevated commands directly from an unelevated console session, ushering in a new era of convenience and efficiency.

What is Sudo for Windows?
Sudo for Windows, a fork of the Linux sudo, is integrated into the Windows command line and PowerShell, allowing users to elevate permissions seamlessly. It’s a new way for users to run commands with elevated permissions without the need to switch to an elevated console. This tool is part of the Windows Insider Program’s continuous effort to bridge the gap between Windows and Linux operating systems, enhancing the functionality of the Windows command prompt and terminal.

How to Enable Sudo for Windows
To enable Sudo for Windows, users can simply go to the settings app, navigate to the ‘For Developers’ section in Windows Settings, and toggle on the “Enable Sudo” option. Alternatively, they can activate it by running the following command in an elevated console window: sudo config --enable <configuration_option>. This feature is available to users running the Windows 11 Insider Preview and is part of Microsoft’s ongoing efforts to make Windows updates more user-friendly.
Configuration Options
Sudo for Windows offers three main configuration options:
- In a New Window: The default setting, where the sudo command opens a new elevated console window to run the command.
- Input Closed: Runs the command in the current window but without accepting any further input.
- Inline: This mirrors the traditional Linux sudo experience, running the command directly in the current window and allowing for interaction.

The UAC Prompt
A key feature of Sudo for Windows is the integration of the User Account Control (UAC) prompt. When you run a command elevated using sudo, a UAC dialog will appear, asking for permission to proceed. This ensures security is not compromised while providing the ease of elevating commands directly from an unelevated console session.
Open Source Initiative
In an exciting move, Microsoft is working on open-sourcing Sudo for Windows. The repository is available on GitHub, inviting developers and users to contribute, review, and enhance the tool. This initiative aligns with Microsoft’s broader strategy to integrate open-source elements into the Windows OS.
Github link: GitHub – microsoft/sudo: It’s sudo, for Windows
Security Implications
Understanding the security implications of running sudo in different configurations is crucial. For instance, when sudo is configured to run in a new window, it mimics the behavior of the traditional runas command, but with added benefits like maintaining the same working directory and environment variables.
Community Feedback and Expansion
Since its announcement in the Windows Insider Program, Sudo for Windows has sparked diverse opinions from users accustomed to the Linux sudo and those familiar with the Windows command line. Microsoft is actively seeking feedback, especially concerning the security implications of running sudo in various configurations.
Future Directions
As part of Microsoft’s commitment to enhancing the Windows command line experience, they are expanding documentation for Sudo for Windows. Future updates and improvements are expected as Microsoft continues to refine this tool, making it an integral part of both Windows Server and Windows OS environments.
Sudo for Windows represents a significant step forward in aligning the command line experiences of Windows and Linux. It offers a new way for users to run elevated commands directly from unelevated terminal windows, simplifying the process and enhancing productivity. As part of the Windows 11 Insider Preview Build 26052, this feature marks a new era in Microsoft’s approach to operating system development, blending user convenience with robust security measures.
I help organisations secure their cloud infrastructure and stay ahead of evolving cyber threats. Microsoft MVP and Certified Trainer, author of Mastering Azure Security, and founder of arnav.au — a platform for practical Cloud, Cybersecurity, DevOps and AI content.
Frequently Asked Questions
Sudo for Windows is a fork of the Linux sudo tool integrated into Windows 11's command line and PowerShell, allowing users to run elevated commands directly from an unelevated console session. Unlike traditional Windows methods, it enables seamless permission elevation without switching to an elevated console window, bringing the Linux sudo experience to Windows while maintaining Windows security standards through UAC prompts.
You can enable Sudo for Windows through two methods: navigate to the Settings app, go to 'For Developers' section, and toggle on the 'Enable Sudo' option, or run the command 'sudo config --enable ' in an elevated console window. This feature is currently available to users running Windows 11 Insider Preview Build 26052.
Sudo for Windows offers three configuration options: 'In a New Window' (the default setting that opens a new elevated console), 'Input Closed' (runs the command in the current window without accepting further input), and 'Inline' (mirrors traditional Linux sudo by running the command directly in the current window with full interaction). Each option provides different levels of user interaction and window management.
No, Sudo for Windows maintains Windows security by integrating the User Account Control (UAC) prompt. When you run an elevated command using sudo, a UAC dialog appears asking for permission before proceeding, ensuring that security is not compromised while providing the convenience of elevating commands from an unelevated console session.
Yes, Microsoft is working on open-sourcing Sudo for Windows with the repository available on GitHub at github.com/microsoft/sudo. This initiative invites developers and users to contribute, review, and enhance the tool, aligning with Microsoft's broader strategy to integrate open-source elements into the Windows OS.