Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Windows » How to Enable and use Sudo in Windows 11
  • postgresql on windows
    Install PostgreSQL on Windows server as Veeam Database Engine Oracle/MSSQL/MySQL
  • Screenshot 2022 04 02 at 22.17.10
    How to Install Kubectl on Windows 11 Windows
  • Screenshot 2020 07 23 at 18.29.00
    Universal, Global, and Domain Local Group Scopes Differences Windows
  • dropbox
    Couldn’t start Dropbox: How to fix and reinstall Dropbox Mac
  • Run Linux on Windows Server
    How to install Windows Subsystem for Linux on Windows Server Linux
  • UpdateOfficeOnlineServer 1
    Perform Office Online Server Update via the Microsoft Update Catalog Network | Monitoring
  • maxresdefault 1
    How to locate and edit the host file on macOS Mac
  • images 7
    The plugin filter file/etc/ansible/plugin_filters(yml) does not exist – Skipping Configuration Management Tool

How to Enable and use Sudo in Windows 11

Posted on 24/05/202420/06/2025 Matthew By Matthew No Comments on How to Enable and use Sudo in Windows 11
How to Enable and use Sudo in Windows 11
How to Enable and use Sudo in Windows 11

As of February 09, 2024, Windows 11 has introduced a new feature allowing developers to use sudo commands, akin to Linux, to run elevated programs without needing to open elevated console sessions first. This guide will walk you through enabling and using Sudo in Windows 11, in a straightforward and relaxed manner. Please see Add a User to the Sudoers List in Linux, and SU Authentication Fix: Sudo Permission Denied in Ubuntu.

Please see these related guides: Sudo Error on Ubuntu: Fixing ‘unknown uid 1000: Who are you?’, KB5034439 Windows Update Error: Resize WinRE Partition, Fix “Getting Windows Ready” Don’t turn off your computer stuck on Windows, Fix 0x800f0831 Error when installing Windows update.

Sudo Requirements in Windows

Before diving in, make sure you have the following: Windows Insider Preview with Canary build 26052 (released on February 09, 2024).

Enabling Sudo on Windows 11

Method 1: Using the Settings App

Press the Windows key, type or select “Settings,” from the Start menu.

Open system settings
Open system settings

Go to System > For developers.

Open developers setting
Open developers setting

Toggle on Developer Mode.

Turn on developer mode
Turn on developer mode

Click “Yes” to confirm.

Confirm to enable developer mode
Confirm to enable developer mode

Scroll down and toggle on the “Enable sudo” option.

Turn on sudo
Turn on sudo

Click “Yes” to confirm.

Confirm to enable sudo
Confirm to enable sudo

Configure Sudo:

Choose how you want Sudo to run applications from the drop-down menu. You have three options:

  • In a new window: Opens the application in a new window.
  • With input disabled: Disables input in the Sudo session.
  • Inline: Runs the application inline, similar to how sudo works on Linux.

You can read more about the security considerations for each mode on devblogs.microsoft.com before enabling the sudo command on your machine.

Here are some related articles: How to Change User Account Type in Windows 10, how to Find and remove Malware with Microsoft Defender Offline, and how to fix “Preparation failed: Error during connect in the default daemon configuration on Windows, the docker client must be run with elevated privileges“.

Method 2: Using an Elevated Console Session

If you prefer command-line interfaces, you can enable Sudo via the command prompt. This method doesn’t require enabling Developer Mode in the Settings app.

Press the Windows key, type “CMD,” right-click on Command Prompt, and select “Run as administrator.”

Command Prompt
Command Prompt

To enable Sudo, type the following command:

sudo config --enable <configuration_option>
Enable sudo in command prompt
Enable sudo in command prompt

Replace <configuration_option> with your preferred configuration:

  • forceNewWindow: Runs Sudo in a new window.
  • disableInput: Runs Sudo with input disabled.
  • normal: Runs Sudo inline (similar to Linux).

Press Enter to execute the command.

You may also want to see: Error 740: Elevated permissions are required to run DISM, how to Install MSSQL 2019 Developer Edition and SSMS on Windows, and How to create a Recovery Partition in Microsoft Windows 10/11.

Conclusion

By following this guide, you can streamline your workflow and take full advantage of this new feature in Windows 11. Enjoy the enhanced flexibility and control that Sudo brings to your Windows experience!

I hope you found this article on how to enable and use Sudo in Windows 11 useful. Please feel free to leave a comment below.

5/5 - (1 vote)

Thank you for reading this post. Kindly share it with others.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
  • Share on Threads (Opens in new window) Threads
  • Share on Nextdoor (Opens in new window) Nextdoor
Windows Tags:Microsoft Windows, sudo, Windows 11

Post navigation

Previous Post: How to create a Recovery Partition in Microsoft Windows 10/11
Next Post: How to fix error “Microsoft Outlook cannot sign or encrypt this message” when sending email?

Related Posts

  • fix this PC cannot run on Windows
    How to Fix “This PC Can’t Run Windows 11” on Hyper Windows
  • How to Fix Application Error (0xc0000135) in Windows
    Fix the application was unable to start correctly (0xc0000135) error Windows
  • remote desktop connection 5 1280x720 1
    How to view and remove Remote Desktop connection history Windows
  • TaskScheduler
    Fix Windows Task Scheduler Error 0x1 Windows
  • image 9
    Fix Error 853: The remote access connection completed, but authentication failed because the certificate that authenticates the client to the server is not valid Network | Monitoring
  • How to Enable & Disable CTRL + ALT + DEL Secure Login on Windows 11
    How to Enable/Disable CTRL + ALT + DEL Secure Login on Windows 11/10 Windows

More Related Articles

fix this PC cannot run on Windows How to Fix “This PC Can’t Run Windows 11” on Hyper Windows
How to Fix Application Error (0xc0000135) in Windows Fix the application was unable to start correctly (0xc0000135) error Windows
remote desktop connection 5 1280x720 1 How to view and remove Remote Desktop connection history Windows
TaskScheduler Fix Windows Task Scheduler Error 0x1 Windows
image 9 Fix Error 853: The remote access connection completed, but authentication failed because the certificate that authenticates the client to the server is not valid Network | Monitoring
How to Enable & Disable CTRL + ALT + DEL Secure Login on Windows 11 How to Enable/Disable CTRL + ALT + DEL Secure Login on Windows 11/10 Windows

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • postgresql on windows
    Install PostgreSQL on Windows server as Veeam Database Engine Oracle/MSSQL/MySQL
  • Screenshot 2022 04 02 at 22.17.10
    How to Install Kubectl on Windows 11 Windows
  • Screenshot 2020 07 23 at 18.29.00
    Universal, Global, and Domain Local Group Scopes Differences Windows
  • dropbox
    Couldn’t start Dropbox: How to fix and reinstall Dropbox Mac
  • Run Linux on Windows Server
    How to install Windows Subsystem for Linux on Windows Server Linux
  • UpdateOfficeOnlineServer 1
    Perform Office Online Server Update via the Microsoft Update Catalog Network | Monitoring
  • maxresdefault 1
    How to locate and edit the host file on macOS Mac
  • images 7
    The plugin filter file/etc/ansible/plugin_filters(yml) does not exist – Skipping Configuration Management Tool

Subscribe to Blog via Email

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

Join 1,825 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.