Elevated Program Shortcut without UAC Prompt Any User is able to Run

matteoautomata

New member
I am trying to make a shortcut to launch a program with admin privileges, with User Account Control (UAC) enabled, from a regular user account.

I had previously used 'runas' to launch a program with admin privileges from a regular user account using a similar method in the "How to Create an Elevated Program Shortcut Any User is able to Run" tutorial to create an elevated shortcut. In my case I am launching Process Explorer as an admin user from a regular user account. I had created a batch file with the command, then created a shortcut to the batch file, although the method in the tutorial where the entire command is just written out as the shortcut target is much simpler.

The 'runas' command used to work fine with UAC turned OFF. However it does NOT work with UAC turned ON. I'm not sure why. If I turn UAC off, it works. But if UAC is turned on, even though the application (Process Explorer) is launched with the admin user account, for system processes it shows <access denied> and no network and no disk information. I have verified the command launches as the admin user, since the admin user account username is listed next to the process, and the name of the admin user account is shown in brackets in the title bar of the application.

Interesting I also tried the Sysinternals 'ShellRunas' utility, which also did NOT work with UAC turned ON. I registered the context menu entry, then I right clicked to select "Run as different user...", and then entered the admin user account credentials, but the application doesn't seem to have the correct permissions either, with showing <access denied> for system processes and no disk/network info, even though it says it is running under the admin user account.



If I right click on the application and choose the "Run as administrator" option (with the little yellow and blue shield), a "User Account Control" dialog pops up, and asks me to enter credentials. I can enter in the admin user account credentials, and then everything works fine with the application permissions.

I don't really want to have to right click, "Run as administrator", and type in a password every time for certain trusted applications that I use frequently.



So I created a scheduled task following the "Elevated Program Shortcut without UAC Prompt" tutorial trying a few different options and created a shortcut to launch that task: (schtasks /run /tn "ProcessExplorer")

'runas' launching app => still get access denied error: (%windir%\System32\runas.exe /user:DOMAIN\AdminUsername /savecred "D:\Downloads\Windows Utilities\Process Explorer\procexp.exe")

'cmd' launching 'runas' launching app => still get access denied error: (%windir%\System32\cmd.exe /c start C:\Windows\System32\runas.exe /user:DOMAIN\AdminUsername /savecred "D:\Downloads\Windows Utilities\Process Explorer\procexp.exe")

'cmd' launching app, with "Task Scheduler" "Security Options" to use admin user account whether or not user is logged on => did not launch (%windir%\System32\cmd.exe /c start "ProcessExplorer" "D:\Downloads\Windows Utilities\Process Explorer\procexp.exe")



I realize the warning in the tutorial states the method described will only work with an administrator account, although I thought there might be a work around. I don't want to be logged in as an administrator all the time, and don't want to disable User Account Control, but would like to run certain trusted applications with admin privileges as a standard user. I known can right click and 'Run as administrator' every time and enter credentials to launch the app with admin privileges, but I thought there might be an easier way.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
custom build
OS
Windows 7 Professional x64
CPU
AMD Phenom II X6 1090T 3.20GHz CPU
Motherboard
Gigabyte GA-890FXA-UD7 AM3 rev2.0
Memory
8.0GB DDR3 1333MHz (PC3-10666) SDRAM
Graphics Card(s)
2x XFX Radeon HD 5870 1GB CrossFire
Monitor(s) Displays
Samsung 2253LW Monitor
Hard Drives
Corsair Force GT 240GB SATA 3 6.0Gb/s SSD
PSU
Thermaltake TR2 TRX-1200M 1200W PSU
Case
CoolerMaster HAF 932 ATX Full Tower
Cooling
XIGMATEK Aegir SD128264 CPU Cooler
Keyboard
Microsoft Sculpt Ergonomic Keyboard
Mouse
Logitech M570 Wireless Trackball
Internet Speed
AT&T U-verse Max Turbo (30Mb/s down, 2Mb/s up)
Antivirus
ESET Smart Security
Browser
Google Chrome
Other Info
ASUS RT-AC66U Router
Maybe a dumb question, but
did you change the password for the admin account after you created the runas shortcut ?
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
home built
OS
Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64 +Linux_VMs +Chromium_VM
CPU
AMD Athlon II x4 620
Motherboard
Gigabyte GA-MA785G-UD3H
Memory
6GB GSkill DDR2 800
Graphics Card(s)
AMD 4670 GPU + AMD 4200 IGP
Sound Card
on board Realtek ALC889A
Monitor(s) Displays
RCA 40" LCD TV, Insignia 32" LCD TV, HP 15" LCD monitor
Screen Resolution
1680 x 1050
Hard Drives
OCZ Vertex 3 120GB,
Samsung F3 1TB (3),
Several others - WD, Seagate, Hitachi, ...
PSU
Corsair 500 W
Case
Rosewill mid tower
Cooling
CM 90mm rifle
Keyboard
Gyration wireless, Logitech wireless, Dell USB wired
Mouse
Gyration wireless, Logitech wireless, V7 USB wired
Internet Speed
Spectrum - 100Mbps D / 10Mbps U
Antivirus
Avast, MBAM3, EMET, WinPatrol
Browser
Pale Moon, Firefox, IE
Other Info
2 multi-boot PC's
Mainly HTPC/Office/Gen purpose (no gaming).
Trendnet USB KVM.
LG DVD burner/Blue Ray Player.
Tray system for removable SATA backup drives.

Not currently OCd, under-volted.
I use Hybrid sleep, rarely re-boot or shutdown.

Hauppauge HD-PVR, Avermedia PCIe TV Tuner, Hauppauge PCI TV Tuner.
I didn't change the password after. Usually if I did change the password the runas command line program will prompt to enter the password. I think that it is because of user account control since when I have user account control disabled the run as command will work fine with the saved credentials however if user account control is enabled the command line run as command does not work. I have just been right clicking and selecting run as administrator with the little blue and yellow shield which grays out the whole screen and prompts for credentials. I guess that is the point of user account control is to increase security but it just makes more work for me where I have to type out my username and password everytime. I had thought about using a auto hot key script to auto fill my password however the auto hot key scripts don't work on any window that is running as the admin account. Oh well
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
custom build
OS
Windows 7 Professional x64
CPU
AMD Phenom II X6 1090T 3.20GHz CPU
Motherboard
Gigabyte GA-890FXA-UD7 AM3 rev2.0
Memory
8.0GB DDR3 1333MHz (PC3-10666) SDRAM
Graphics Card(s)
2x XFX Radeon HD 5870 1GB CrossFire
Monitor(s) Displays
Samsung 2253LW Monitor
Hard Drives
Corsair Force GT 240GB SATA 3 6.0Gb/s SSD
PSU
Thermaltake TR2 TRX-1200M 1200W PSU
Case
CoolerMaster HAF 932 ATX Full Tower
Cooling
XIGMATEK Aegir SD128264 CPU Cooler
Keyboard
Microsoft Sculpt Ergonomic Keyboard
Mouse
Logitech M570 Wireless Trackball
Internet Speed
AT&T U-verse Max Turbo (30Mb/s down, 2Mb/s up)
Antivirus
ESET Smart Security
Browser
Google Chrome
Other Info
ASUS RT-AC66U Router
Back
Top