Microsoft Introduces Linux-Like ‘sudo’ Command in Windows 11

February 12, 2024NewsroomOperating System / Technology

Sudo for Windows 11

Microsoft said it introduced Sudo for Windows 11 as part of an early preview version to help users execute commands with administrator privileges.

“Sudo for Windows is a new way for users to run long commands directly from an elevated console session,” Microsoft Product Manager Jordi Adoumie SAYS.

“This is an ergonomic and familiar solution for users who want to raise a command without having to first open a new raised console.”

Sudo, short for superuser do, is a program for Unix-like computer operating systems that allows users to run programs with the security privileges of another user, usually a user with elevated permissions. (eg, administrator).


The feature is available for Windows 11 builds 26045 and later. This can be done by going to Settings > System > For Developers, and setting “Enable sudo” to On.

Sudo for Windows has three options: run applications in a new tall console window, run long processes in the current window but the input stream (stdin) is closed, and in inline mode.

Sudo for Windows 11

“The inline configuration option runs a long process in the current window and the process receives input from the current console session,” Redmond warned in its documentation.

“A non-elevated process can send input to the elevated process within the same console windows or obtain information from the output of the current windows in this configuration.”

Microsoft said that it is also in the process of open-sourcing the project GitHubencourages other users to contribute to the initiative as well as report issues and file feature requests.

Did you find this article interesting? Follow us on Twitter and LinkedIn to read more exclusive content we post.

Leave a comment