By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
Daily HacklyDaily HacklyDaily Hackly
  • Tech & Digital Trends
  • Entertainment & Lifestyle
  • Money & Smart Living
  • Productivity & Life Hacks
Search
  • Contact
  • Blog
  • Complaint
  • Advertise
© 2022 Foxiz News Network. Ruby Design Company. All Rights Reserved.
Reading: Windows Introduces Its Own Command Function Similar to ‘Sudo’
Share
Sign In
Notification Show More
Font ResizerAa
Daily HacklyDaily Hackly
Font ResizerAa
Search
  • Home
    • Home 4
  • Categories
  • Bookmarks
  • More Foxiz
    • Sitemap
Have an existing account? Sign In
Follow US
  • Contact
  • Blog
  • Complaint
  • Advertise
© 2022 Foxiz News Network. Ruby Design Company. All Rights Reserved.
Daily Hackly > Blog > Tech & Digital Trends > Windows Introduces Its Own Command Function Similar to ‘Sudo’
Tech & Digital Trends

Windows Introduces Its Own Command Function Similar to ‘Sudo’

DailyHackly
Last updated: March 14, 2025 8:45 pm
DailyHackly
Share
Windows Introduces Its Own Command Function Similar to ‘Sudo’
SHARE

Enhancing PowerShell with Sudo in Windows

If transitioning from Linux to Windows, one of the most frustrating aspects of using PowerShell is the requirement to launch it as an administrator to enact system modifications. The most straightforward method to do this is by right-clicking on the application in the Start menu and selecting “Run as administrator.” However, this approach lacks sophistication.

This inconvenience stands in stark contrast to most Linux distributions which resolved this issue long ago with the introduction of the sudo command. On Linux, appending “sudo” before any command allows it to be executed with administrative privileges; a prompt requests the administrator’s password, and the action is carried out. This practicality has even inspired one of the renowned comics by XKCD.

Recognizing this need, Microsoft has introduced a feature that mimics the functionality of sudo, albeit with some technical discrepancies. While the new Windows feature is dubbed “sudo,” it does not function in precisely the same way as its Linux counterpart (a classic case of Microsoft creating confusion with terminology).

This pseudo-sudo functionality debuted with Windows 11 version 24H2, which was rolled out in October 2024 and continues to be released to Windows users through February 2025. To verify access to this feature, navigate to System Settings and then to System > For developers. Look for an option to enable sudo; if it’s not available, your system is likely not running version 24H2.

Windows Settings showcasing Developer settings with Sudo enabled.
Photo Credit: Justin Pot

There are three modes for executing commands with sudo. By default, commands will run in a new window, but two alternative options are available: Inline, where commands execute in the same window, and Input closed, which also runs commands within the same window but without accepting input from it. For safety reasons, the official documentation suggests retaining the default setting, although the Inline option is a closer match to the Linux sudo command.

Using this functionality is easy: prepend your command with sudo, and a prompt will appear seeking confirmation.

User Access Control (UAC) confirmation window for sudo actions.
Photo Credit: Justin Pot

Simply select Yes to allow the command to execute with elevated permissions. Essentially, just prefix your commands with sudo to run them as an administrator.

Execution of the netstat command with administrator privileges using sudo.
Photo Credit: Justin Pot

Experiment with your regular commands and assess your experience. If you find it lacking, you can always revert to running PowerShell as an administrator.

There are several scenarios where Microsoft’s implementation of sudo may not fully meet your needs. You might not be utilizing the 24H2 version of Windows, or you may encounter challenges in getting sudo to work with specific applications. Alternatively, you might prefer a speedy method to switch your current session to an elevated status. In such cases, gsudo could be a preferable option. This open-source utility is recommended in Microsoft’s documentation as it offers functionalities that closely resemble the Linux version of sudo, and it can be quickly installed via the winget package manager.

© 2023 All Rights Reserved

You Might Also Like

Nine Essential Apps for Your Fire TV Stick That You Need to Explore

Exciting Enhancements on the Horizon: Major Upgrades and a Fresh Start Menu for Windows 11

Five Essential Apps to Ease the Study Experience

Powerbeats Pro Available for Only $100 Today!

Understanding the Capabilities and Limitations of VPNs

TAGGED:administration systèmeastuces Windowscommandecommandes avancéesdéveloppementfonctiongestion systèmeinformatiquesligne de commandemise à jour Windowsnouveautés windowsoutils windowssécurité informatiquesudoWindows

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
[mc4wp_form]
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Copy Link Print
Share
Previous Article Steps to Secure Your Share of Avast’s $16.5 Million Settlement Fund Steps to Secure Your Share of Avast’s $16.5 Million Settlement Fund
Next Article Massive Discount: Save 43% on the 75-Inch Hisense U7 Today! Massive Discount: Save 43% on the 75-Inch Hisense U7 Today!
Leave a Comment

Leave a Reply Cancel reply

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

Stay Connected

248.1kLike
69.1kFollow
134kPin
54.3kFollow
banner banner
Create an Amazing Newspaper
Discover thousands of options, easy to customize layouts, one-click to import demo and much more.
Learn More

Latest News

Top Memorial Day Discounts on Affordable Headphones and Earbuds
Top Memorial Day Discounts on Affordable Headphones and Earbuds
Tech & Digital Trends
Google Introduces Premium AI Subscription Plan with a Hefty Price Tag
Google Introduces Premium AI Subscription Plan with a Hefty Price Tag
Tech & Digital Trends
Currently Available: Compact, Waterproof Sony Speaker Priced at Only $35
Currently Available: Compact, Waterproof Sony Speaker Priced at Only $35
Tech & Digital Trends
Google Unveils Agent Mode for Gemini, Transforming Its AI into an Authentic Personal Assistant
Google Unveils Agent Mode for Gemini, Transforming Its AI into an Authentic Personal Assistant
Tech & Digital Trends
//

We influence 20 million users and is the number one business and technology news network on the planet

Quick Link

  • Contact
  • Blog
  • Complaint
  • Advertise

Support

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

[mc4wp_form id=”1616″]

Daily HacklyDaily Hackly
Follow US
© 2022 Foxiz News Network. Ruby Design Company. All Rights Reserved.
Join Us!
Subscribe to our newsletter and never miss our latest news, podcasts etc..
[mc4wp_form]
Zero spam, Unsubscribe at any time.
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?