Created
December 22, 2019 03:09
-
-
Save liyafe1997/93be39df5ffee18a1c14a24122576e15 to your computer and use it in GitHub Desktop.
sudo.ps1, sudo for PowerShell, put in C:\Windows then you can sudo in powershell lol. You need sudo.bat(https://gist.github.com/liyafe1997/e036a7c3d4fb3903d567ec6d62c324ef)
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
If($args){sudo.bat powershell -NoExit -Command "(cd "$pwd");("$args")"}Else{sudo.bat powershell -NoExit -Command "cd "$pwd} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment