A pseudo Windows sudo

Richard Benson10 January 2011Administration, IT Proscomments

Often when using the command prompt in Windows Vista and Windows 7 you'll need to run the command as an Administrator and whilst running a command prompt elevated is not tough, it's fiddly. If you've forgotten to do it before you've moved your way around the file system it can be very annoying.

Linux has sudo but Windows has no alternative, so we knocked together a very simple sudo for Windows.
To use it, you'll currently need Visual Studio 2010 to compile, then place it in System32 (or any PATH folder) and simply type:
sudo <your-command> <arguments>
To run a permanently elevated command prompt, you can simply type "sudo cmd" into your start bar search and save yourself the additional mouse clicks required to do this the traditional way.

The code is available on our GitHub. There is a pre-compiled binary available, but check your dependencies first.
comments powered by Disqus
Support Ticket
Remote Support
Support
clever girl