30
votes
10answers
90k views

On Windows 7, is there a command prompt line that can start cmd as an administrator? [duplicate]

On Linux, we can use sudo bash to run a shell as the superuser. On Windows 7, we can use Start menu -> (in search box, type) cmd -> Right click on search result and choose Run as Administrator ...
21
votes
4answers
36k views

What is the equivalent of sudo in Windows 7? [duplicate]

Possible Duplicate: is there any 'Sudo' command for windows ? Is there a command line equivalent to sudo in Windows 7? Or do you just have to open a command prompt that is being run ...
6
votes
2answers
10k views

How to switch to having administrative privileges [duplicate]

Possible Duplicate: is there any 'Sudo' command for windows ? I was wondering how to switch to having administrative privileges in a command line window of Windows? Is there any way ...
3
votes
1answer
8k views

In Windows 7, is it possible to do “runas” administrator *without* using the GUI? [duplicate]

Possible Duplicate: Is there any 'sudo' command for Windows? I'm aware of the various options for setting the "run as administrator" flag, and for opening an admin console window. But what if ...
0
votes
1answer
4k views

How to run a command as administrator in Windows? [duplicate]

Possible Duplicate: is there any ‘Sudo’ command for windows ? I want to run a console program in Windows, but it required administrative privileges. So, I can right click the ...
0
votes
1answer
5k views

su Command Prompt [duplicate]

Possible Duplicate: Is there any 'sudo' command for Windows? Commands su & sudo could be used to turn whole current terminal session as super user with administration privileges. ...
-1
votes
1answer
540 views

Start an app from command line with Admin Privileges [duplicate]

In unix you can sudo ... if you want to do something that requires elevated permissions. Is there a windows equivalent? In cmd I can type regedit to open the registry editor, but is there any way to ...
0
votes
0answers
47 views

Runas program as administrator [duplicate]

There is context menu entry on cmd, "Run as Administrator", that opens UAC window and launches cmd as Administrator. How can I open a program as Administrator in command line? I've read about runas ...
4
votes
6answers
34k views

Is it possible to shutdown a remote computer running Windows 7 via Telnet?

I've successfully connected to my Windows 7 desktop over wifi via Telnet from an XP Home netbook. To login, I use the following command: telnet -l "win7desktop\win7user" win7desktop win7user in ...
5
votes
3answers
11k views

Run cmd.exe in Administrator mode without explorer.exe

I've recently had trouble with explorer.exe not working. I found a possible solution here, using sfc.exe. The problem is that I cannot "right-click Command Prompt, and then click Run as ...
1
vote
4answers
7k views

How can I run commands in PowerShell with Administrator permissions?

I would like to run commands in PowerShell with Administrator permissions? How can I do that? I have tried to start PowerShell with the runas command, but PowerShell is closed immediately after I ...
4
votes
1answer
7k views

Is there any way to elevate a command prompt in Windows 7? [duplicate]

Possible Duplicate: Elevate a running program to administrator (Windows 7) Situation: I start a command prompt normally, without Administrator permissions, either accidentally by habit or ...
0
votes
2answers
11k views

giving permission to program to run with out confirmation in start command windows

I am using this start /b C:\wamp\wampmanager.exe command to start a program in my windows( Windows 7 Ultimate - 64 bit). But then the program want a permission to run Do you want to allow the ...
0
votes
7answers
392 views

Is it possible to always run cmd from Windows' Run panel as admin?

I'd like to be able to start Command Prompt as admin either as default or as an easy routine. I know about Ctrl+Shift+Enter in the search list or adding a Registry Entry for a new Context Menu, but I ...
0
votes
3answers
845 views

Get administrative right in windows command line [duplicate]

I am not trying to do cheeky things, but my need is just to have two scripts for adding or removing IP routes using the following command in batch scripts: Add route: @echo off route add -p 20.20....

15 30 50 per page