sudo command for Windows

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

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.

Henning Koch About 13 years ago