Microsoft has introduced a new utility called “sudo” which allows for the selective execution of commands in the terminal with administrator rights. This utility is included in the test assemblies of Windows 11 Insider Preview Build 26052 and will be included in the next update of Windows 11, as well as being made available for Windows 10 in the future. The utility code is planned to be opened under the MIT license.
Unlike the classic Linux project “sudo” and the independent project “gsudo” for Windows, Microsoft’s “sudo” was written from scratch with a focus on integration with Windows. While it conceptually implements the ideas of the classic “sudo” project, it differs in terms of command line options and the logic of delegation of powers.
|Microsoft Sudo Diagram
One notable feature of Microsoft’s “sudo” is the ability to choose how the operation dialogue is displayed and how applications are launched. Applications can be launched in a new window (Forcentwindow), in place (Normal), or in a mode with data blocking (Disableput). It is important to note that Microsoft’s Sudo only supports the execution of programs with administrator authority and cannot be used to launch under other users. Additionally, Sudo does not request the administrator password but instead applies the UAC (User Account Control) mechanism for verification.
|User Account Control (UAC) Dialog