Enable and use Windows 11 24H2 Sudo

Sudo was first added by Microsoft in Windows 11 26052 (Insider). Now with Windows 11 24H2, Sudo has been integrated, but is not activated automatically. You first have to go to the settings. This is also displayed when you enter sudo in PowerShell.

If you want to use sudo, you can go to Settings -> System -> For developers. There you can activate sudo and how sudo runs the application. (In a new window, with disabled input, or inline). You can then use it immediately.

Sudo itself is known from Linux or macOS. Here you have the option of starting processes with higher rights, up to superuser. It is currently not planned to use such high rights (TrustedInstaller or System) under Windows. Sudo under Windows offers the possibility of executing commands as administrator in PowerShell or the command prompt if you do not start it as an administrator.

Sudo will follow for Windows 10, but it can already be used without any problems.

It remains to be seen whether Microsoft will expand Sudo as a “tool” over time. Until then, NanaRun, for example, offers the possibility of executing commands with even higher privileges.

Windows 11 Tutorials and Help