Read more

sudo command for Windows

Henning Koch
February 25, 2011Software engineer at makandra GmbH

There is no good equivalent for the Unix sudo Show archive.org snapshot command in Windows. Below are a few workarounds that are all unsatisfactory to some degree.

Run the command prompt as Administrator

  • Right-click on the Command Prompt icon
  • Select Run as Administrator
  • Do what you need to do
  • Quickly close the terminal

Sudo for Windows

Illustration online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
Read more Show archive.org snapshot

If you are using an English Windows, you can use Sudo for Windows Show archive.org snapshot . Unfortunately the tool has unresolved issues Show archive.org snapshot for non-English versions of Windows.

Use runas

Windows comes with a runas command that allows you to run a command as another user. The syntax you want to run something as root is like this:

runas /user:your_machine\Administrator "command param1 param2"

You will be prompted for the Administrator password, not the password for the current user. You will also need to activate the Administrator user, which is disabled by default for good reason.

Posted by Henning Koch to makandra dev (2011-02-25 10:05)