Sudo for Windows is a new way for users to execute commands with elevated privileges (as an administrator) directly from a non-relevant console session on Windows.
The following requirements apply to the use of sudo in Windows:
- Windows 11 24H2
- Sudo needs to be enabled
Enabling sudo for Windows
Type sudo in your Windows search bar. In System – Developer, enable sudo.

Using sudo
Imagine you are using PowerShell without administrative rights. Simply switch to another PowerShell process with elevated rights.

Or execute individual commands in PowerShell without starting a new administrative session.

Have fun using sudo in Windows!
Categories: PowerShell, Windows 11, Windows Server




2 replies »