Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I frequently use the Command Prompt to execute some system functions (like iisreset, aspnet_regiis etc) which needs elevated rights.

Every time I start the Command Prompt, I right click on the CP icon Run As Administrator. So I wanted to change the Privilege Level in the properties (tab compatibility) but this is grayed out.

Is there a way to change the privilege level?

share|improve this question

3 Answers 3

up vote 3 down vote accepted

Not on a System file.

You could unhide the Administrator account, log into that account, then you don't need to use the "run as admin" on any program, it is done by default.

EDIT: Possible Solution:

Right click on cmd shortcut, select Properties, go to shorcut tab, hit advanced button, tick "run as administrator", hit Ok, Ok.

.

share|improve this answer
    
That would be an solution, only I'm connected to a domain. Haven't got enough points to upvote this answer though –  rdkleine Jun 26 '10 at 11:14

You can change the Command Prompt shortcut to always run as Administrator under the Properties sheet → Shortcut tab → Advanced.

picture of Advanced button on properties sheet

share|improve this answer

To auto run CMD as admin each time without having to right click and run as admin or create any shortcuts, there is a simple fix for this:

In the registry editor, navigate to "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" (If there isn't a Layers folder, you'll have to create one) For the value, make it the full path to command prompt. (i.e. C:\Windows\System32\cmd.exe without any quotes) and the data of that value "RUNASADMIN" without quotes.

share|improve this answer
    
Thank you for this. I was looking all over for where this was set. –  Rabbid10 Mar 15 '13 at 20:09

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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