← Package directory
Available on winget

Install gsudo

The missing piece in Windows. Cherry-pick which commands to elevate with just one keyword.

Install with winget
winget install --id gerardog.gsudo
Upgrade
winget upgrade --id gerardog.gsudo
Uninstall
winget uninstall --id gerardog.gsudo

About gsudo

gsudo is a sudo equivalent for Windows, with a similar user-experience as the original Unix/Linux sudo. Allows you to run a command (or re-launch your current shell) with elevated permissions, in the current console window or a new one.

What's new in 2.6.1

What's Changed - Fix askpass named pipe name path prefix by @awakecoding in https://github.com/gerardog/gsudo/pull/402 - Build pipeline maintenance by @gerardog Full Changelog: https://github.com/gerardog/gsudo/compare/v2.6.0...v2.6.1

Read release notes

Version history

Version Updated Notes
2.6.1 Unknown What's Changed - Fix askpass named pipe name path prefix by @awakecoding in https://github.com/gerardog/gsudo/pull/402 - Build pipeline maintenance by @gerardog Full Changelog: https://github.com/gerardog/gsudo/compare/v...
2.6.0 Unknown What's Changed - New Icon! #371 Thanks to @e-t-l @LukeMitsialis. (Is it too blurry?) - Added gsudo config --reset-all to Clear All Config Settings by @gerardog in https://github.com/gerardog/gsudo/pull/392 - When elevati...
2.5.1 Unknown - Modified the new PathPrecedence config setting (docs) ensuring that the system recognize the changes without requiring a log-off or restart. You still need to restart your consoles.
2.5.0 Unknown With the release of Microsoft Sudo in Windows 11 24H2, both needs to coexist peacefully. When Microsoft Sudo is present, the sudo command no longer redirects to gsudo by default, so: - Added a new config setting PathPrec...
2.4.4 Unknown What's Changed - Proper fix for WSL wrapper will not work if gsudo is on different drive #337 #338
2.4.2 Unknown What's Changed - Fix Error: Invalid option: -noninteractive using gsudo {command} on Visual Studio code by @gerardog in #306 - Fix issue in system/trusted-installer credentials cache support by @gerardog in #323 Docs - D...
2.4.1-fixnoninteractive Unknown What's Changed - The code signing certificate expired, so I've applied the one donated by @parag_c_meta & signmycode.com. Please be patient until this certificate gets downloads and reputation on Antivirus vendors. Pleas...
2.4.0 Unknown What's Changed - Improved scripting scenarios by @gerardog in #286 - gsudo status {key} returns exit code for booleans: 0(success) for true, 1(fail) for false - Added --no-output to gsudo status {key} --no-output to supp...
2.3.0 Unknown What's Changed - Add JSON format to gsudo status --json by @gerardog in #276 - Fetch a single status value using gsudo status {key} - E.g. gsudo status CacheAvailable - Fixed PowerShell Module install location to support...
2.2.0 Unknown What's Changed - PowerShell Module Improvements by @gerardog in #275 - The module can now be imported simply with Import-Module gsudoModule, eliminating the requirement for a full absolute path. Existing scripts using ab...
2.1.0 Unknown What's Changed - Improvements in gsudo PowerShell Module - Added PowerShell syntax suggestions and auto-complete for gsudo (#233) - Added PowerShell functions: - Test-IsProcessElevated function, returns true if elevated....
2.0.9 Unknown What's Changed - Fix to prevent WSL to default to Windows directory by @gerardog in #260
2.0.8 Unknown Release notes
2.0.7 Unknown Release notes
2.0.6 Unknown Release notes
2.0.4 Unknown Release notes
2.0.3 Unknown Release notes
2.0.2 Unknown Release notes
2.0.1 Unknown Release notes
2.0.0 Unknown Release notes