Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>I want to just be able to have a sudo-like command to run elevated from an otherwise non-elevated shell.

Won't the runas command (https://docs.microsoft.com/en-us/previous-versions/windows/i...) let you do this - run a command as Administrator without opening another command/powershell prompt?



cinst gsudo

Works like on linux. Runas and friends are junk.

https://github.com/gerardog/gsudo


I'll have to check this one out. I vaguely remember coming across runas in the past and it not meeting my needs.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: