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.

Aller à l'installation

Informations de source

Dépôt
JerryLinLinLin/gsudo-skills
Dernière activité de la source
27 juillet 2026 à 01:25
Langue détectée de SKILL.md
anglais
Étoiles
1
Forks
0

Options d'installation

Le prompt qui vérifie d'abord la source est sélectionné par défaut. Vous pouvez passer à une commande directe ou télécharger une copie locale.

Vérifiez les fichiers source

Lisez SKILL.md et les fichiers associés affichés par SkillsMP avant de décider de l'installer.