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
7508553
downloads
Zona

Zona

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

4
614 reviews
1735315
downloads
WinRAR

WinRAR

Streamline file management with fast compression, secure your documents, and save space.

5
735 reviews
746713
downloads
Minecraft

Minecraft

Shape environments, explore vast worlds, and survive against monsters with endless creativity.

5
750 reviews
495639
downloads

News and reviews for Desktop Windows

Visio 2021 Professional Now $9.97 Until February 8

Microsoft offers Visio 2021 Professional for $9.97, down from $249, with added templates, until February 8.

Read more

Code Vein Offers Stylish Combat, Discounted Editions

Code Vein captivates with anime-style combat and offers discounted editions. Fast-paced action meets fun builds in this cult classic.

Read more

Microsoft Phases Out RC4 in Kerberos for Windows Security

Microsoft to eliminate RC4 in Kerberos by July 2026, enhancing Windows security.

Read more

Highguard Faces Criticism but Shows Potential for Growth

Highguard, launched with controversy, holds potential despite poor reviews. Offering genre innovation, it aims to evolve against negative feedback.

Read more

PS2Recomp Boosts Native PS2 Games with Recompilation

PS2Recomp, a new tool, promises enhanced native PS2 game ports, sparking interest among developers for PC platforms.

Read more

NVIDIA Introduces RTX Remix Logic for Classic Game Mods

NVIDIA's RTX Remix Logic, launched on 2026-01-27, enables dynamic modding of classic PC games with a no-code node-based interface.

Read more

Windows 11 Update KB5074109 Affects Legacy Modems

The Windows 11 update KB5074109 disrupts modems by removing several legacy drivers, causing connectivity issues for select users.

Read more

Anytype Replaces Notion, Obsidian, and Todoist for Unified Workflow

Anytype consolidates Notion, Obsidian, and Todoist functions, reducing context-switching and improving workflow efficiency.

Read more

ReBlade: Cyberpunk Roguelike Announced by ChillyRoom

ReBlade from ChillyRoom and Spiral Up Games announced for PC: cyberpunk roguelike offers high-speed action in a dystopian setting.

Read more

Artorias Battles Elden Ring Bosses in New Video Showcase

Artorias from Dark Souls faces Elden Ring bosses, demonstrating impressive skills in Fights' YouTube video.

Read more