Microsoft Introduces Sudo for Windows 11 Version 24H2, Enhancing Security

25 Jul 2024

Windows users can now enjoy a feature long cherished by Linux aficionados: the sudo command. This powerful tool allows users to execute programs with the security rights of another user—typically the superuser or administrator—without needing to log in with full administrative privileges. This is particularly beneficial for tasks that require elevated permissions, offering a more secure and convenient way to manage administrative duties.

Sudo Complements RunAs

Microsoft has acknowledged the advantages of sudo and is introducing it to Windows 11 systems with the Windows 11 version 24H2 update. Although it's uncertain whether Windows Server 2022/2025 will also receive sudo, the source code for Sudo for Windows is already available on GitHub.

While Windows already has the RunAs command, which allows users to start a command in the command line using another user account, RunAs is often seen as cumbersome and less effective compared to sudo. The RunAs command requires you to enter the password of the specified user, and it runs applications entirely in the context of that user. In contrast, sudo offers more nuanced control over permissions and logging, making it a more flexible and comprehensive tool for system administration.

For example, RunAs is used in the format runas /user program, where you must enter the password of the specified user. However, sudo provides similar functionality but with differences in application and administration. Currently, sudo doesn't allow you to start a program as if you were someone else; it lets you execute commands as a superuser or administrator. Microsoft plans to add this functionality in future updates.

While RunAs allows temporary elevation of permissions for a specific program or script, sudo supports the delegation of specific commands without granting full administrator rights, offering finer control over system administration. Despite its potential, Microsoft has so far implemented only a few of the functions available in the original sudo command for Linux, so Sudo for Windows currently has limited capabilities compared to its Linux counterpart.

Enabling Sudo in Windows 11 Version 24H2

Sudo isn't enabled by default on all systems, though this may change in future updates. Starting with Windows version 24H2, Sudo for Windows comes pre-installed but requires manual activation. When you enter the sudo command in the command line, terminal, or PowerShell, Windows 11 version 24H2 will prompt you to activate it first.

To enable sudo, navigate to System > For developers in the Windows 11 settings and select Enable Sudo. Before final activation, you'll need to confirm via a User Account Control message. Alternatively, you can activate Sudo for Windows using the sudo command itself, with various options available:

  • In a new window (forceNewWindow)
  • In the same window (normal)
  • Disable input (disableInput)

This new feature brings a significant enhancement to Windows' administrative capabilities, providing users with more secure and efficient ways to manage their systems.

Top charts for Desktop Windows

uTorrent

uTorrent

Latest update uTorrent download for free for Windows PC or Android mobile

5
1032 reviews
6367991
downloads
Zona

Zona

Latest update Zona download for free for Windows PC or Android mobile

4
614 reviews
1263238
downloads
WinRAR

WinRAR

Latest update WinRAR download for free for Windows PC or Android mobile

5
735 reviews
494916
downloads
Minecraft

Minecraft

Latest update Minecraft download for free for Windows PC or Android mobile

5
750 reviews
453344
downloads

News and reviews for Desktop Windows

Pillars of Eternity Introduces New Turn-Based Mode

Obsidian unveils Pillars of Eternity's turn-based mode, launching beta on 2023-11-05. Aims at improved gameplay flexibility.

Read more

Arc Raiders Adds New Social Dynamics in Solo Queue

Arc Raiders players find success through communication in solo queue, transforming gameplay with increased cooperation and engagement.

Read more

Critical GDI Flaws Patched in Microsoft Windows

Microsoft uncovers and patches critical GDI flaws allowing remote code execution in Windows. Impacts extend to Microsoft Office for Mac and Android.

Read more

Zeekerss Launches 10-Year Text Adventure 'Welcome to the Dark Place'

Zeekerss releases 'Welcome to the Dark Place', blending text adventure techniques with bespoke audio for a unique gaming experience.

Read more

Design Director Plans Saints Row Prequel Pitch

Original Saints Row's Chris Stockman explores new prequel pitch focused on early series tone, rejecting VR approach.

Read more

Breach Wizards Levels Up with Community Expansion

Tactical Breach Wizards embraces a challenging new level pack. Discounted 40% until 2023-11-09. Includes 'less-than-lethal' pyromancer, Bori.

Read more

Stalker 2 Leaving Game Pass on 2025-11-15

Stalker 2 and Frostpunk exit Game Pass on 2025-11-15. Subscribers have limited time to play these titles before they're removed.

Read more

New PC Bang Spotted in Pyongyang With Asus ROG Setup

North Korea's new PC bang has emerged in Pyongyang, featuring Asus ROG gear and AAA games, suggesting limited, elite access.

Read more

Launches: Europa Universalis 5 and Football Manager 26 Expand PC Games Lineup

New PC games launched this week include Europa Universalis 5 and Football Manager 26, adding variety to the market with strategy and sports simulators.

Read more

Five New Steam Games Released: Notable Titles for November 2025

Explore five new Steam games launched in late October 2025, ranging from narrative adventures to twin-stick shooters and trading simulations.

Read more