feat: Add native Sudo (Win 11 24H2+) toggle to Essential Tweaks#4769
Open
KarimBenkirane wants to merge 1 commit into
Open
feat: Add native Sudo (Win 11 24H2+) toggle to Essential Tweaks#4769KarimBenkirane wants to merge 1 commit into
KarimBenkirane wants to merge 1 commit into
Conversation
Contributor
|
pretty niche |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type of Change
Description
What changed:
Added a new tweak to the Essential Tweaks section that allows users to enable the native
sudocommand built into Windows 11.Why it was changed:
Windows 11 introduced native
sudofunctionality (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 (likegsudo).Implementation Details:
HKLM:\Software\Microsoft\Windows\CurrentVersion\SudoValue: 3so thatsudoexecutes in Inline mode (resembling the familiar Linux experience in the same console window).OriginalValueis 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).(Win 11 24H2+)to prevent confusion for users on older Windows 10/11 versions.docs\content\dev\tweaks\Essential-Tweaks\EnableSudo.md.