PowerShell

Sudo for Windows (PowerShell)

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:

  1. Windows 11 24H2
  2. 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!

2 replies »

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.