Skip to main content

Command Palette

Search for a command to run...

Microsoft is bringing the Linux sudo command to Windows Server

Published
2 min readView as Markdown
Microsoft is bringing the Linux sudo command to Windows Server
C
酷愛計算機技術Ardently Love Computer Technology 長期關註反洗錢反欺詐Long-term Focus on Anti-Money Laundering and Anti-Fraud 精通支付結算的技術、系統、流程和製度Proficient in the Technology, System, Process and Institution of Payment and Settlement

February 4, 2024


Microsoft is bringing the Linux 'sudo' feature to Windows Server 2025, offering a new way for admins to elevate privileges for console applications.

Superuser do, or sudo, is a Linux console program that allows low-privileged users to execute a command with elevated privileges, usually as root.

This command offers increased security in Linux as servers can be used normally under low-privileged accounts while still allowing users to elevate their privileges as needed when running specific commands.

  • Testing sudo in Windows Server 2025

Microsoft released the first Windows Server 2025 Insider preview build last week. However, soon after, a newer version was leaked online.

As first reported by Windows Latest, the leaked version contains some new in-development features, including new settings for a Windows 'sudo' command.



These settings are only available after enabling developer mode, and the sudo command does not currently work from the command line yet, showing it is early in development.

However, the sudo settings provide some clues as to how the command will work, with the ability to run sudo applications 'In a new windows', 'With input disabled', and 'Inline'.

Windows already offers the ability to elevate programs automatically using UAC prompts, causing the programs to run with elevated privileges in their own window.

However, some administrative tools, such as bcdedit and reagentc, require you to be an administrator to run these commands.

In these cases, the sudo command will allow the programs to run based on its Windows settings, such as in a new window, inline in the current window, or possibly in a non-interactive shell using the disabled input setting.

While this feature has not been spotted in Windows 11, it would not be surprising for Microsoft to add sudo to that operating system in the future as well.

It is important to note that Microsoft commonly tests new features in preview builds that do not make it into the production builds.

However, it will be interesting to see how Microsoft integrates this feature into Windows and will be something to keep an eye on.

More from this blog

Penetration Test、Python、Weaponization

721 posts

微信 smartcat9999 反欺詐Anti-Fraud 反洗錢Anti-Money Laundering 反逃稅Anti-Tax Evasion 滲透測試Penetration Test 武器化Weaponization