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 web development

Do you need DevOps-experts?

Your development team has a full backlog? No time for infrastructure architecture? Our DevOps team is ready to support you!

  • We build reliable cloud solutions with Infrastructure as code
  • We are experts in security, Linux and databases
  • We support your dev team to perform
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)