Microsoft has released a new sudo
command and it's now installed on every Windows machine.
Not only does its binary have priority over my sudo powershell script, but it does not work as expected.
λ sudo Set-Service -Name ssh-agent -StartupType Manual
Command not found
Indeed, it does not work with powershell command because they are not executable.
How do I force the sudo
command to point to my sudo.ps1
and not C:\WINDOWS\system32\sudo.EXE
without deleting a file in system32?
Deactivating the feature does not help.
λ sudo netstat -ab
Sudo is disabled on this machine. To enable it, go to the Developer Settings page in the Settings app