In Linux, we can use sudo
to run command as root. In Windows, we can use runas
command to do that, but it doesn't support for empty password file! So we make this small macro for you to do the same thing as sudo for Windows.
Install this macro:
doskey sudo=start /min powershell -Command "Start-Process $* -Verb runAs"
Using this macro: