This week, Microsoft released one of the biggest Insider builds in quite a while. The build, 26052, was delivered on both the Canary and the Dev channels, and it has several interesting additions and improvements like 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.
Besides those, the build is the first Windows 11 version 24H2 build, and as such, there appear to be substantial installation issues, likely related to Sysprep, that are leading to GSODs, among other problems.
While Sudo is now available on Windows 11 24H2, Microsoft confirmed that it released it on Windows Server by mistake, and it will be withdrawn soon.
And if you are a Windows 10 user or someone who is still on Windows 7, perhaps due to weak or incompatible hardware, or you simply love the OS, there is good news. Despite no official announcement, X (formerly Twitter) user and Windows enthusiast Bob Pony found out that the new Sudo command works on Windows 7.
Sudo for Windows from Windows 11 build 26052, works in Windows 7! 🧵 pic.twitter.com/DohWZFODaJ
— Bob Pony (@TheBobPony) February 9, 2024
On the Windows 11 Insider build 26052, users can enable Sudo by navigating to Settings > System > For developers and then toggling on the "Enable sudo" command. There should also be an option to configure how Sudo runs apps.
However, on Windows 7, things are different. You can make it work by downloading the Sudo for Windows app separately, placing it in the System32 folder, and then executing a couple of commands in elevated CLI like Command Prompt (as Administrator) or PowerShell.
How to Install Sudo for Windows:
— Bob Pony (@TheBobPony) February 9, 2024
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⃣ Enjoy
Download link: https://t.co/Naqm6K2Chq
Aside from Windows 7, Sudo for Windows works on Windows 10 as well. Hence, you can launch elevated commands now 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 has likely not gone through wider compatibility testing at the moment, and therefore, users may encounter some bugs or issues while doing so.