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.

跳到安装

来源信息

仓库
JerryLinLinLin/gsudo-skills
最近来源活动
2026年7月27日 01:25
检测到的 SKILL.md 语言
英语
星标
1
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。