What is gsudo?
gsudo is made by Gerardo Grignoli. A Windows command-line elevation utility that runs commands or shells with administrator privileges (via UAC) from the current session, supporting piping/redirected I/O, multiple shells, and an optional credential cache without requiring a persistent Windows service.
What gsudo does
A Windows command-line elevation utility that runs commands or shells with administrator privileges (via UAC) from the current session, supporting piping/redirected I/O, multiple shells, and an optional credential cache without requiring a persistent Windows service.
- Runs commands with elevated permissions (UAC “RunAs”) and can also elevate the current shell
- Displays elevated command output in the current console (no new window by default; supports launching a new window with -n/--new)
- Optional credentials cache mode to reduce repeated UAC prompts (explicit/auto/disabled; configurable duration)
- Shell detection and native elevation support for multiple shells (e.g., CMD, PowerShell, WSL, Git-Bash/MinGW/MSYS2/Cygwin, NuShell)
- Supports scripting scenarios including StdOut/StdErr piping and capturing and propagating exit codes
- Security/elevation options including run as another user, integrity level selection, Local System, and TrustedInstaller modes
Category: Privileged Access Management. gsudo is open source and free to use.
What teams use it for
- Elevate individual administrative commands from a non-elevated terminal without switching windows
- Run admin-required steps inside developer/operator scripts while preserving console I/O behavior
- Perform Windows administration from WSL sessions by elevating the WSL process/commands
- Execute commands as Local System or TrustedInstaller for advanced troubleshooting/repair tasks
What it overlaps with
These tools do similar work and turn up in the same large estates. Owning more than one is common, and it is often where the savings are.
Questions buyers ask
What does gsudo do?
A Windows command-line elevation utility that runs commands or shells with administrator privileges (via UAC) from the current session, supporting piping/redirected I/O, multiple shells, and an optional credential cache without requiring a persistent Windows service.
How common is gsudo in large enterprises?
Samplify finds gsudo in about 2 in 10 of the large enterprise software estates it has analysed.
Is gsudo free?
gsudo is open source and free to use.
What can replace gsudo?
Other tools in the same category include Local Administrator Password Solution, Central Policy Manager, CyberArk, Elevate.
Do we already own something that does what gsudo does?
Often, yes. Large estates commonly hold several tools that overlap. Samplify compares every tool you own at feature level, across every category, and decides which one stays.
Paying twice for the same job?
Most large estates own several tools that do the same thing, often without anyone knowing. Samplify compares every tool you own at feature level and decides which one stays, with the evidence attached.
Where this comes from
Samplify's software catalogue and the large enterprise estates it has analysed, as at 2 Dec 2026. Features and use cases are Samplify's own reading of the product. Check anything important with Gerardo Grignoli.