Microsoft confirms Sudo is coming to Microsoft Windows 11 with Build 26052.
Microsoft Windows 11 Build 26052, which is able to most probably be accessible for obtain on Thursday or later this week, consists of the primary public preview of “Sudo for Microsoft Windows”.
In a now-deleted weblog submit, which was first noticed and cached by Microsoft Windows Latest, Microsoft confirmed Sudo for Microsoft Windows is a latest method to “elevated commands directly from an unelevated console session”, and it has plans to make the function open-source on GitHub.
Microsoft describes Sudo for Microsoft Windows as “an ergonomic and familiar solution for users who want to elevate a command without having to first open a latest elevated console”. Sudo for Microsoft Windows is within the early levels of growth, and it was just lately noticed in a leaked Microsoft Windows Server 2025 construct.
In a deleted weblog submit, Microsoft notes that Sudo may be enabled from Settings > For Developers web page, and toggle on the “Enable Sudo” choice.
You may allow Sudo for Microsoft Windows by operating the next command in an elevated console session:
sudo config --enable <configuration_option>
As we beforehand reported, Sudo for Microsoft Windows presently helps three totally different configuration choices:
- In a latest window ( latestWindow): In this configuration, Sudo for Microsoft Windows will open a latest elevated console window and run the command in that window. This is the default configuration choice when sudo is enabled. For instance, when you run:
sudo netstat -abA latest window will open and the command might be run in that window - Input closed (disableInput): In this configuration, Sudo for Microsoft Windows will run the elevated course of within the present window, however the latest course of might be spawned with its stdinput closed. This implies that the latest course of won’t accept any person enter, so this configuration won’t work for processes that require additional person enter after elevation.
- Inline (regular): This configuration is most much like the conduct of sudo on different working programs. In this configuration, Sudo for Microsoft Windows will run the elevated course of with its stdinput, stdoutput, and stderror all related to the present window. This means the latest elevated course of can soak up enter and route output to the present window.
Microsoft explains how Sudo for Microsoft Windows works
When you run a course of from the command-line with sudo, a UAC dialog will seem, asking the person to verify the elevation. And you’ll be capable to use sudo within the terminal such as you do on Linux or macOS.
In a New Window
In this configuration, sudo.exe will launch a latest elevated console window and run the command in that window. The latest window might be launched with the identical working listing as the present window.
The latest window can even be launched with the identical atmosphere variables as the present window. This configuration has an analogous move to the runas command.
Input Closed and Inline
In these configurations, sudo.exe will launch a latest elevated course of, an elevated sudo.exe course of, and the unique unelevated sudo.exe will set up an RPC reference to the latest elevated course of.
In different phrases, info is handed from the unelevated sudo instance to the elevated one. Specifically, the console handles from the unelevated course of are handed to the elevated course of which permits the elevated course of to learn enter from the unelevated course of and write output to the unelevated course of.
However, when sudo is configured within the “Input Closed” configuration, the elevated course of will basically not be handed the console’s enter deal with, so it will be unable to learn enter from the person.
It is vital when operating sudo within the “Inline” or “Input Closed” configurations to concentrate on the safety implications. It is feasible {that a} medium integrity course of can drive the elevated course of. This danger is mitigated within the “Input Closed” configuration as a result of the elevated course of will be unable to learn enter from the person.
Microsoft famous that it’ll even be publishing documentation for Sudo for Microsoft Windows and might be sharing more particulars concerning the safety implications of operating sudo within the “Inline” configuration.
“Our team is working on open-sourcing Sudo for Microsoft Windows, and we’re excited to share more details about our plans in the coming months,” the corporate famous in a now-deleted weblog submit.
Check out more article on Microsoft Windows 11 , Microsoft Windows 10
Leave a Reply