To assist users in carrying out commands with administrator privileges, Microsoft announced the introduction of Sudo for Windows 11 in an early preview version.
According to Microsoft Product Manager Jordi Adoumie,” Sudo for Windows is a new way for users to run elevated commands directly from an unelevated console session.”
For users who do n’t need to open a brand-new elevated console first, it is an easy-to-use and well-known solution.
A program for Unix-like computer operating systems called Sudo, which stands for superuser do, enables users to run programs with another user’s security privileges, typically an administrator.
Windows 11 builds 26045 and later can use the feature. By selecting” Enable sudo” to On, you can enable it by going to Settings andgt, System andgg, For Developers.
Run applications in a brand-new elevated console window, run the elevated process while keeping the input stream ( stdin ) closed, and enter inline mode in Sudo for Windows.
Redmond issues a warning in its documentation,” The inline configuration option runs the elevated process in the current window and the process is able to receive input from current console session.”
” In this configuration, an unelevated process can receive data from the output of the current windows or send input to the elevated process within the same console windows.”
Microsoft urged other users to participate in the initiative as well as report problems and file feature requests, saying it is also open-sourcing the project on Git Hub.