Skip to content

feat: Add native Sudo (Win 11 24H2+) toggle to Essential Tweaks#4769

Open
KarimBenkirane wants to merge 1 commit into
ChrisTitusTech:mainfrom
KarimBenkirane:add-sudo-tweak
Open

feat: Add native Sudo (Win 11 24H2+) toggle to Essential Tweaks#4769
KarimBenkirane wants to merge 1 commit into
ChrisTitusTech:mainfrom
KarimBenkirane:add-sudo-tweak

Conversation

@KarimBenkirane

Copy link
Copy Markdown

Type of Change

  • New feature
  • Bug fix
  • Documentation update
  • Refactor
  • UI/UX improvement

Description

What changed:
Added a new tweak to the Essential Tweaks section that allows users to enable the native sudo command built into Windows 11.

Why it was changed:
Windows 11 introduced native sudo functionality (starting with Insider Build 26045 and publicly in 24H2). This PR allows users to easily enable it through WinUtil rather than having to install third-party binaries (like gsudo).

Implementation Details:

  • Uses the native Windows registry key: HKLM:\Software\Microsoft\Windows\CurrentVersion\Sudo
  • Set to Value: 3 so that sudo executes in Inline mode (resembling the familiar Linux experience in the same console window).
  • OriginalValue is correctly set to <RemoveEntry> so that undoing the tweak fully restores the system to factory defaults (since older Windows 11 builds don't have this registry key).
  • The title explicitly mentions (Win 11 24H2+) to prevent confusion for users on older Windows 10/11 versions.
  • Added corresponding markdown documentation under docs\content\dev\tweaks\Essential-Tweaks\EnableSudo.md.

@github-actions github-actions Bot added documentation Improvements or additions to documentation new feature New feature or request labels Jun 28, 2026
@GabiNun2

Copy link
Copy Markdown
Contributor

pretty niche

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation new feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants