Microsoft said that, in order to facilitate the execution of commands with administrator capabilities, Sudo will be included in an early preview version of Windows 11.
Microsoft Product Manager Jordi Adoumie stated, "Sudo for Windows is a new way for users to run elevated commands directly from an unelevated console session."
"It is an ergonomic and familiar solution for users who want to elevate a command without having to first open a new elevated console."
A tool for Unix-like computer operating systems called sudo, short for superuser do, enables users to run programs with the security capabilities of another user—typically an account with elevated access.
Build 26045 and later Windows 11 are compatible with this functionality. To activate it, navigate to “Settings” > “System” > “For Developers” and turn “Enable Sudo” on.
Run programs in a new elevated console window, running the elevated process in the current window with the input stream (stdin) closed, and executing the elevated process in inline mode are the three choices available for Sudo for Windows.
Redmond's documentation cautions that “the inline configuration option runs the elevated process in the current window and the process can receive input from the current console session.”
“In this configuration, an unelevated process can receive information from the output in the current windows or send input to the elevated process within the same console windows.”
Microsoft announced that it is also in the process of opening-sourcing the project on GitHub and invites other users to report bugs and submit feature requests in addition to contributing to the endeavor.