5 comments

[ 3.2 ms ] story [ 22.5 ms ] thread
Yes, let’s use a random package off GitHub to run things with admin privileges.
echo powershell start -verb runas %* > sudo.bat
Wouldn't PowerShell's JEA (Just Enough Admin) effectively be able to do most of what sudo does, including limiting command parameters provided to the elevated commands?

I just recently discovered JEA but haven't played with it much yet.

With all due respect, the "tool" seem like being a couple simple batches and a powershell script.

Suggesting to install chocolatey in order to "install" the above appears to me a little excessive, when the install process amounts roughly to "copy these three little files somewhere on your PC".