What is Sudo for Windows?
Sudo for Windows is a new way for users to run elevated commands directly from an unelevated console session.
everything about permissions and the command line experience is different between Windows and Linux. This project is not a fork of the Unix/Linux sudo project, nor is it a port of that sudo project. Instead, Sudo for Windows is a Windows-specific implementation of the sudo concept.
As the two are entirely different applications, you'll find that certain elements of the traditional sudo experience are not present in Sudo for Windows, and vice versa. Scripts and documentation that are written for sudo may not be able to be used directly with Sudo for Windows without some modification.
It is an ergonomic and familiar solution for users who want to elevate a command without having to first open a new elevated console.
How to enable Sudo for Windows:
-
To enable Sudo for Windows, navigate to the Settings > For Developers page in Windows Settings and toggle on the Enable Sudo option.
-
You can alternatively enable Sudo for Windows by running the following command in an elevated console session: sudo config --enable <configuration_option>.