gsudo
WindowsElevate command-line privileges on Windows like Unix sudo
Overview
gsudo is a lightweight, open-source command-line tool that brings Unix-like sudo functionality to Windows. It allows users to run commands, scripts, or entire shell sessions with administrative privileges from normal Command Prompt, PowerShell, or Windows Terminal windows. Key features include preserving the current working directory and environment variables when elevating, support for UAC prompt customization, and seamless integration with popular terminal emulators. It’s portable (no installation required) and works across Windows 10 and 11, ideal for developers and sysadmins needing quick admin access.
Key Features
- Elevate commands/scripts with admin privileges in cmd/PowerShell
- Preserve current directory and environment variables during elevation
- Integrate with Windows Terminal and ConEmu
- Portable (no installation needed, single executable)
Frequently Asked Questions
? Is gsudo compatible with Windows 11?
Yes, gsudo is fully compatible with both Windows 10 and Windows 11, supporting all major command-line interfaces like cmd, PowerShell, and Windows Terminal.
? Is it safe to install?
Yes, gsudo is open-source software licensed under MIT, with its source code publicly available on GitHub. It has no malicious components or adware.
? Is there a portable version?
Yes, gsudo is designed to be portable. You can download the executable from its GitHub releases page and run it directly without any installation.
Top Alternatives
People Also Ask about gsudo
Tool Info
Pros
- ⊕ Lightweight and fast execution
- ⊕ Portable (no setup required)
- ⊕ Works with all major Windows command-line environments
- ⊕ Open-source with transparent code
Cons
- ⊖ No GUI—requires command-line proficiency
- ⊖ UAC prompt still mandatory (per Windows security)
- ⊖ Cannot directly elevate GUI applications from CLI