{"repo":"gerardog/gsudo","free":true,"listed":false,"github":"https://github.com/gerardog/gsudo","clone":"git clone https://github.com/gerardog/gsudo.git","description":"Sudo for Windows","language":"C#","stars":6026,"topics":["elevated-commands","elevated-permissions","uac","sudo","windows","runas","elevate","sudo-for-windows","powershell","wsl"],"license":"MIT","category":"cli-tools","readme_excerpt":"gsudo - a sudo for Windows gsudo is a sudo equivalent for Windows, with a similar user-experience as the original Unix/Linux sudo. Allows you to run a command (or re-launch your current shell) with elevated permissions, in the current console window or a new one. Just prepend gsudo (or the sudo alias) to your command and it will run elevated. For PowerShell use this syntax: gsudo { ScriptBlock } One UAC popup will appear each time. You can see less popups if you enable gsudo cache. It detects your current shell and elevates your command as native shell commands. (Supports Cmd , PowerShell , WSL , git-bash , MinGW , Cygwin , Yori , Take Command , BusyBox & NuShell .) Table of contents - gsudo - a sudo for Windows - Table of contents - Demo - Features - Installation - Usage - Usage from PowerShell / PowerShell Core - PowerShell Module - Usage from WSL (Windows Subsystem for Linux) - Configuration - Credentials Cache - Known issues - FAQ - Please support gsudo! 💵 --- ⭐ Extended documentation available at: Demo (with gsudo config CacheMode auto ) --- Features - Elevated commands are shown in the current console. No new window (unless you specify -n ) - Credentials cache: gsudo can elevate many times showing only one UAC pop-up if the user opts-in to enable the cache. - Detects your current shell (Supports CMD , PowerShell , WSL , Bash for Windows (Git-Bash/MinGW/MSYS2/Cygwin), Yori , Take Command and NuShell ), and elevates your command correctly. - Supports being used on script","default_branch":null,"files":null,"tree":[],"storefront":"/r/gerardog","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/gerardog/gsudo/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}