up vote 1 down vote favorite
1
share [g+] share [fb]

Possible Duplicate:
On Win7, is there a Command Prompt line that can start cmd as an Administrator?

Is it possible to force cmd.exe to always run with Admin rights?

link|improve this question
Duplicate of superuser.com/questions/74564/… – harrymc Dec 28 '09 at 14:15
Related but certainly not a duplicate – Tony Edgecombe Dec 28 '09 at 18:47
feedback

closed as exact duplicate by harrymc, ChrisF, Sathya, Diago Dec 28 '09 at 19:19

This question covers exactly the same ground as earlier questions on this topic; its answers may be merged with another identical question. See the FAQ.

3 Answers

up vote 2 down vote accepted

(If you are in Vista or Windows 7)

Press start
type "cmd"
hit Ctrl+Shift+Enter

this method will run any app as administrator

link|improve this answer
Press Alt+C to accept the resulting UAC prompt in Vista, or Alt+Y in Windows 7 – RJFalconer Dec 28 '09 at 14:13
feedback

In Windows Vista/7 follow these steps to always run the command prompt as an administrator:

  1. Click Start. Type Command. Right-click Command Prompt, and then click Properties.

    enter image description here

  2. On the Shortcut tab, click Advanced.

  3. Select the Run as administrator checkbox.

    enter image description here

  4. Click OK twice.

Now, when you launch a Command Prompt from the Start Menu, UAC will prompt you for administrative privileges.

link|improve this answer
You can not do this for command prompt – Jonathan. Dec 28 '09 at 15:15
but of course you can, screen shots added. – Molly7244 Dec 28 '09 at 15:32
feedback

If you're using Windows XP, you could create a short cut to cmd.exe in the Quick Launch area and then right click -> Properties and change the Target field. You would preface the command with "runas /noprofile /user:DOMAIN\USERNAME".

The full text of the command on my computer is "C:\WINDOWS\system32\runas.exe /noprofile /user:DOMAIN\USERNAME %SystemRoot%\system32\cmd.exe".

link|improve this answer
You can also edit the "Advanced" settings on shortcut properties and check "Run as administrator". – RJFalconer Dec 28 '09 at 14:06
I don't see this in XP but you can do that in 7. – rodey Dec 28 '09 at 14:33
feedback

Not the answer you're looking for? Browse other questions tagged or ask your own question.