Microsoft is bringing another Linux feature to Windows… although it’s an optional feature aimed at power users. Sudo for Windows is a command line tool that works a lot like its Linux counterpart, allowing users to run commands that require elevated permissions on a case-by-case basis.

In other words, you don’t need to right-click and choose “run as administrator” or open up a command prompt that has administrator privileges. You can open a normal command prompt or terminal windows and then type “sudo” at the start of any command that needs escalated privileges.

Sudo for Windows doesn’t work exactly like the Linux version. Instead of prompting you for a password, for example, Sudo for Windows will bring up the Windows User Account Control pop-up dialog asking you if you for confirmation before executing the tasks.

It’s also an entirely optional feature that needs to be enabled. Sudo for Windows is currently available for members of the Windows Insider program running Windows 11 preview build 26052. If that’s you, then you can open Windows Settings, navigate to the System > For Developers area, and then flip the toggle to “Enable sudo.”

Windows Insiders can also enable the feature by opening a command prompt and typing:

sudo config --enable <configuration_option>

Configuration options include “normal,” “forceNewWindow,” or “disableInput:”

  • Normal or “inline” mode will allow you to run elevated commands in the same window where you type them.
  • forceNewWindow does what it says on the tin: the command will open a new elevated terminal window where the task will be executed.
  • disableInput also allows elevated commands to run in the same window, but no further user input is accepted at an elevated level. So if you’re running a task that requires additional  input, this may not be the best option.

Microsoft has made Sudo for Windows an open source project: there’s a GitHub repository for the project.

Keep in mind that if you’re not a member of the Windows Insider program, then you cannot use this feature yet. But it will likely make its way to a stable release of Windows in the future.

Meanwhile, Sudo for Windows isn’t the first open source sudo implementation for Microsoft’s desktop operating system. Developer Gerardo Grignoli’s gsudo has been around for years, and while it’s not as tightly integrated with the operating system’s system settings as Microsoft’s implementation, Microsoft notes that gsudo has “additional functionality that Sudo for Windows does not provide,” and more configuration options. So the company recommends users looking for more features check it out.

via Windows Insider Blog and Windows Command Line Blog

Support Liliputing

Liliputing's primary sources of revenue are advertising and affiliate links (if you click the "Shop" button at the top of the page and buy something on Amazon, for example, we'll get a small commission).

But there are several ways you can support the site directly even if you're using an ad blocker* and hate online shopping.

Contribute to our Patreon campaign


Contribute via PayPal

* If you are using an ad blocker like uBlock Origin and seeing a pop-up message at the bottom of the screen, we have a guide that may help you disable it.

Subscribe to Liliputing via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 9,536 other subscribers

Join the Conversation


Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  1. Guess what? First time ever that I’ve been using Youtube in the last 20 years…. I tried to watch the latest ABC news nightly cast, and for the first time tonight — was greeted with a popup saying I needed to login with my google account. Really?

    I really hope these mega corps go under — Microsoft, Google, Apple.. when the hell will they ever learn? They are waging war against privacy conscious people….. to thell with them….

    1. I have no idea what your comment has to do with this article, but I agree completely with your sentiment. I woke up this morning to my new Pixel 8 Pro telling me it had, without my permission or prior knowledge, publicly posted photos I took last night to the Maps app for anyone to see. They were innocent pictures (I was trying out the astrophotography mode in the camera in an empty parking lot), but imagine if they had been intimate photos? Burn in hell Google, and I’m going to be installing CalyxOS as soon as I can.

  2. Yeah, Microsoft “loves” Linux. They love Linux in-so-far as they copy it when they find something better than what they could ever dream up of. They rip off open source like every other Mega Corp in the world.

    They don’t love Linux. They just knew that Linux was cutting into their bottom line and was a real competitor. Even if however small, Microsoft took great notice.

    They’re just copy-catting and ripping off open source. Nothing new from Microsoft… it digusts me really. And here I am, using Windows so I can play my 55 GOG games that I’ve bought. I still hate them though…. they are a predatory company.

  3. It’s not exactly a first, but it’s easier to memorize than the existing command line option for running as other users.