Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Use "Run as administrator" with UAC disabled

05 Sep 2010   #1

Windows 7 Pro x32
 
 
Use "Run as administrator" with UAC disabled

If you have UAC enabled you can start a program with administrator rights using "Run as administrator". But after disabling UAC this entry has no effect any more. As instance on my computer a have two user accounts. One for Internet and one for local usage. But some apps on my internet account need admin rights. This is an workaround for that problem using Sysinternals' psexec:

0) you need to have an (admin) account with a password set, it won't work without having set a password to that user, i call that user "Administrator" here
1) Download Sysinternals "PsTools" here: PsTools (direct link: http://download.sysinternals.com/Files/PsTools.zip)
2) Extract the zip file to "C:\Program files\PsTools"
3) Check wether "psexec.exe" is within "C:\Program files\PsTools"
4) Press Win+R and type "regedit"
5) navigate to "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\exefile"
6) create a backup: right click the key "exefile" and "Export" it to any folder (remember that folder if my workaround doesn't work for you)
7) navigate to "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\exefile\shell\runas\command"
8) change the value of the string "(Default)" to "C:\Program Files\PsTools\PsExec.exe" -i -d -u Administrator "%1""
9) delete the string "IsolatedCommand" (don't delete the value only)
10) you have finished

When using "Run as administrator" now a console will appear where you have to enter the password of Administrator.

Important note: While typing the password no letters or signs will be printed out at the console! Just type and press the enter key.

If you sometimes have problems with this solution you can backup the changed "exefile" key. So you can easily import the original or the modded backup.

@Admin: Please move this tutorial to the tutorials forum and delete this line

My System SpecsSystem Spec
.

05 Sep 2010   #2

Operating System : Windows 7 Home Premium Edition 6.01.7600 SP1 (x64)
 
 

i have uac disabled and in my context menu i still have the option "Run as administrator" ? are you saying the when you click it does not "Run as administrator" i am the only user on my machine so this has no relevance to single users?
My System SpecsSystem Spec
05 Sep 2010   #3

Win 7 Home Premium 64 Bit
 
 

Quote   Quote: Originally Posted by brianzion View Post
i have uac disabled and in my context menu i still have the option "Run as administrator" ? are you saying the when you click it does not "Run as administrator" i am the only user on my machine so this has no relevance to single users?
ive never had to set anything "run as admin" everything i run has full admin rights it seems by default , i dont have UAC enabled and im the only user so maybe thats why , but ive never been troubled with any issues regarding admin rights even using command prompt
My System SpecsSystem Spec
.


05 Sep 2010   #4

Windows 8.1 Pro (x64)
 
 

Here is a much easier way. Turn UAC on.
My System SpecsSystem Spec
05 Sep 2010   #5

Win 7 Home Premium 64 Bit
 
 

Quote   Quote: Originally Posted by logicearth View Post
Here is a much easier way. Turn UAC on.
I cant , i hate it , its a waste of time and energy and as annoying as hell Just another pointless piece of software to fool us into thinking our pc's are safe in microsofts hands , i can set my firewall to be just as annoying if i want

i have friends who are pc savvy they disable it as a matter of course with zero issues , i have family members who are not as savvy leave it switched on and call me up at least once a month to remove all the rogue software from thier pc's , waste of time , or they ring me up all the time "my pc is asking for permission to do such and such what do i do?"..........................................well you start by disabling UAC
My System SpecsSystem Spec
05 Sep 2010   #6
Microsoft MVP

Windows 8.1 Pro with Media Center 64 bit
 
 

I also have UAC turned off. It's an annoyance I can do without. I also still have the "run as administrator" context menu item and I have never had to use it.
My System SpecsSystem Spec
05 Sep 2010   #7

Windows 7 Pro x32
 
 

With UAC disabled you still have "Run as administrator" in your context menu. But it doesnt work. On my computer a have two user accounts. One for Internet and one for local usage. But some apps on my internet account need admin rights. But as i said "Run as administrator" had no effect, because UAC is disabled.
My System SpecsSystem Spec
05 Sep 2010   #8

Operating System : Windows 7 Home Premium Edition 6.01.7600 SP1 (x64)
 
 

Quote   Quote: Originally Posted by archie123 View Post
Quote   Quote: Originally Posted by logicearth View Post
Here is a much easier way. Turn UAC on.
I cant , i hate it , its a waste of time and energy and as annoying as hell Just another pointless piece of software to fool us into thinking our pc's are safe in microsofts hands , i can set my firewall to be just as annoying if i want

i have friends who are pc savvy they disable it as a matter of course with zero issues , i have family members who are not as savvy leave it switched on and call me up at least once a month to remove all the rogue software from thier pc's , waste of time , or they ring me up all the time "my pc is asking for permission to do such and such what do i do?"..........................................well you start by disabling UAC
i agree its to much security and annoying if you have a decent security suite that should protect you
My System SpecsSystem Spec
05 Sep 2010   #9

Windows 8 Core X64
 
 

Maybe this will help: Vista: "Run as..." while UAC disabled - Vista Security

Basically says Run as Administrator is a part of UAC and when UAC is disabled, RaS no longer does anything. The the "runas" command-line tool still exists and can be used.
My System SpecsSystem Spec
05 Sep 2010   #10
Microsoft MVP

 

Is there a reason why you would want Users prompted to "Run As Adminstrator" yet not want even a minimum level of UAC turned on?

I know UAC is annoying and turn it off for my own installs or set to lowest for other installs. And it does indeed then disable Run as Admin making it the same as far as I can tell as running as hidden Admin.

Perhaps the OP has other Users he doesn't want installing Programs. Yet doesn't want constant nag messages about what he is doing.

They way I explain UAC to newbies is it might stop an internet intruder from running a program by asking you first, so dont' approve action you are not taking yourself at that moment. But most of the time it just asks you if you want to do what you are doing at the moment.

Others?
My System SpecsSystem Spec
Reply

 Use "Run as administrator" with UAC disabled




Thread Tools




Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 10:58 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33