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
hedak

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
brianzion

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
archie123

Win 10 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
logicearth

Windows 10 Pro (x64)
 
 

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

Win 10 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
alphanumeric
Microsoft MVP

Windows 10 Education 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
hedak

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
brianzion

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
Ztruker

Windows 10 Pro 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
gregrocker

 

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




Similar help and support threads
Thread Forum
IE 11 displays "Get to Google faster. Update"... WHEN instant DISABLED
hi guys, posted this somewhere else already but wanted to hear your opinion here as well, here's all the steps: What steps will reproduce the problem? 1. Use IE11 - IE 10 2. Disable Instant 3. Search anything on google.com, co.uk, .it etc and then hit F5 What is the expected output?...
Browsers & Mail
Run "cmd.exe" as a given user and "as administrator" in command line
Hello and thank you for reading my post. If I'm logged in Windows as user "u1", I can execute "cmd.exe" "as administrator" by choosing "Start" -> "cmd.exe" and right-click "Run as administrator".I would like to start another "cmd.exe" console as "u2" and "as administrator". (So, "u2" is not...
General Discussion
New install, stuck on "Preparing your desktop...", disabled services
I just installed Windows 7 on my desktop and whenever the login screen appears and I login, I see "Welcome" for about two seconds then "Preparing your desktop..". The icon beside "Preparing your desktop..." spins for about a second then it freezes, and remains frozen. I've left it for 10 minutes...
Installation & Setup
Recording issue - "Show Disabled Devices" does not work
Win 7 32Bit Home Premium (Vista Upgrade) Hi, My apologies if this had already been addressed in a different thread, but I could not find an answer to my issue anywhere. I want to be able to record "What u hear". Every thread I have read states the same thing. Control panel> sound>...
Sound & Audio
everything is "disabled by the administrator" .. HELP
Hello all, I recently got a virus which has literally robbing of access to almost every essential software on my pc. Access to the following are disabled: Command prompt, Task Manager, RegEdit, and many others I can't remember right now. I updated my anti-virus which has then...
General Discussion
Intel Turbo Memory keeps reverting back to "Disabled"
Hey guys, I upgraded to windows 7 over vista the other day and I just noticed a problem. I have the Intel Turbo Memory Readyboost and it used to work perfectly with Vista, but I just opened the window where you enable/disable it, and it said it was disabled, so i enabled it and it asked me to...
General Discussion


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 12:32.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App