For years, Windows users who needed administrative privileges in the terminal had to jump through a few awkward hoops—usually launching an entirely new “Run as administrator” window or wrestling with the clunky runas command. The article explains how Microsoft has finally embraced a much simpler approach by introducing the familiar sudo command to Windows 11. Borrowed from the Linux world, sudo allows users to run a single command with elevated privileges without turning the entire terminal session into an administrative free-for-all.
The new feature arrives with Windows 11 version 24H2 and must be enabled manually through the Settings → System → For Developers menu. Once activated, users can simply type sudo before a command to execute it with admin privileges. Windows even lets you choose how it behaves: run the command in a new elevated window, execute it inline in the same terminal, or run it with input disabled for extra safety.
The real win here is both convenience and security. Instead of running an entire terminal session with full administrative rights—where every command could potentially cause damage—sudo elevates only the commands that actually need it. The result is a faster, cleaner workflow that Linux users have enjoyed for years and Windows users have long requested. In short, the command line on Windows just got a lot smarter—and a little more Unix-flavored.
click here or the image above for the full free article