-
-
Save gnaggnoyil/1615d815be41d99705ca99c948bbb6f7 to your computer and use it in GitHub Desktop.
sudo for Windows, save as sudo.bat put in C:\Windows then you can sudo lol. Powershell see https://gist.github.com/liyafe1997/93be39df5ffee18a1c14a24122576e15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
powershell -Command "(($arg='/k cd /d '+$pwd+' && %*') -and (Start-Process cmd -Verb RunAs -ArgumentList $arg))| Out-Null" | |
@echo on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment