This week, Microsoft released one of the biggest Insider releases in some time. Build 26052 has been released on the Canary and Dev channels, and features several interesting additions and improvements, such as a better registry editor, new taskbar icons, and the addition of the new sudo command on Windows. You can find all the details in the original article.
On top of that, the release is the first build of Windows 11 version 24H2 and as such there appear to be significant installation issues, likely related to Sysprep, which lead to GSODs, among other things.
While Sudo is now available on Windows 11 24H2, Microsoft has confirmed that it released it on Windows Server by mistake, and it will be removed soon.
And if you’re a Windows 10 user or someone who’s still using Windows 7, perhaps due to weak or incompatible hardware, or if you just like the operating system, there’s some good news. Despite no official announcement, X (formerly Twitter) user and Windows enthusiast Bob Pony discovered that the new Sudo command worked in Windows 7.
On Windows 11 Insider build 26052, users can enable Sudo by going to Settings > System > For Developers and then enabling the “Enable sudo” command. There should also be an option to configure how Sudo runs applications.
However, in Windows 7 things are different. You can get it working by downloading the Sudo app for Windows separately, placing it in the System32 folder, and then running a few commands in an elevated CLI, like Command Prompt (as administrator) or PowerShell.
How to install Sudo for Windows:
1⃣ Copy sudo.exe to %windir%\System32
2⃣ Open Command Prompt as administrator
3⃣ Run these 2 commands:
sudo config –enable enable
sudo config –enable forceNewWindow
4⃣ Take advantage
Download link: https://t.co/Naqm6K2Chq
– Bob Pony (@TheBobPony) February 9, 2024
Besides Windows 7, Sudo for Windows also works on Windows 10. Therefore, you can now launch elevated commands on Windows 10 and Windows 7.
As you can see in the image above, I tried it on my PC and it worked. However, this likely hasn’t undergone wider compatibility testing at this time and therefore users may encounter bugs or issues while doing so.