Skip to main content

gsudo

Cheatsheet for gsudo — a sudo for Windows — to run commands elevated (as admin) or elevate the current shell in-place, without a separate admin window. Use it for essentially any gsudo / "sudo on Windows" task: elevating the current CMD / PowerShell / WSL / Git-Bash shell, cutting UAC popups with the credentials cache, running as System / TrustedInstaller / another user / a chosen integrity level, elevating in a new window, the PowerShell `gsudo { ScriptBlock }` / `Invoke-gsudo` / `$using:` syntax, scripts that self-elevate, detecting elevation with `gsudo status`, dropping privileges with `-i`, and tuning via `gsudo config`. Trigger on phrasings like "run as admin from the terminal", "elevate this command", "sudo on Windows", "gsudo", "run as SYSTEM / TrustedInstaller", "fewer UAC prompts", "make a script self-elevate", or "am I running elevated". Assumes gsudo is installed and on PATH. Covers CMD / PowerShell / WSL / Git-Bash / MSYS2.

Jump to install

Source facts

Repository
JerryLinLinLin/gsudo-skills
Last source activity
July 27, 2026 at 01:25
Detected SKILL.md language
English
Stars
1
Forks
0

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.