Solved Run program on startup as admin using MMC without UAC

GuitarMaestro

New member
Local time
3:18 PM
Messages
2
I've been searching for a solution to my problem for going on a week now but to no avail. here's the situation:

Laptop running Windows 7 Enterprise SP1. I've created custom software that needs to run as an administrator while a standard user is logged in. This software needs to write to a location that is forbidden to the standard user. I've turned off UAC because that is the only way I could get the program to launch from MMC (This software must run on startup and it must be setup so the standard users cannot disable it). i've tried adding permissions, modifying local policy, everything I can think of and read online. Nothing is helping. The program performs just fine from my admin account. The files aren't going to the VirtualStore either, and there is no erorr generated.

With UAC enabled on any level, the program doesn't run on startup. And running the program after the laptop is running gives me the admin credentials request windows from UAC.

The program is written in VB.NET 2010. Should I be looking to insert some code to run as admin???

i've also tried creating a shortcut to specify 'Run As Administrator', but this doesn't allow access to the critical location.

I just performed a test. The program never gets ran under the admin account with UAC turned off (task manager lists the owner as the standard user). If UAC is turned on and I manually start the program and enter the admin credentials, everything is fine and the admin is listed as the owner. Still stumped.
 
Last edited:

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
lenovo
OS
Windows 7 Pro 32 bit
Hello GuitarMaestro, and welcome to Seven Forums.

If you like, you could use the method in the tutorial below to create an elevated shortcut that a standard user will be able to run without being prompted by UAC.

http://www.sevenforums.com/tutorials/193743-elevated-program-shortcut-create-standard-user.html

However, Windows will not let anything run elevated at startup in a standard account for security purposes.

For you administrator account, you might be able to use the method in the tutorial below to run it elevated at startup without being prompted by UAC when UAC is on.

http://www.sevenforums.com/tutorials/11949-elevated-program-shortcut-without-uac-prompt-create.html

Hope this helps some, :)
Shawn
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Thanks so much! Neither were quite exactly what I needed, but it got me on the right track.

I tried the shortcut method running 'runas', but still had issues.
I had to turn UAC completely off. then I created a .bat file to run 'runas'. For whatever reason, windows liked that instead of the shortcut. I see the CMD prompt appear while it is launching my program as admin, but that's now a big deal.
The MMC entry now points to the batch file.
Thanks again.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
lenovo
OS
Windows 7 Pro 32 bit
You're most welcome. I'm glad it was able to help. :)
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Back
Top