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: Run program on startup as admin using MMC without UAC


27 Jan 2014   #1

Windows 7 Pro 32 bit
 
 
Run program on startup as admin using MMC without UAC

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.


My System SpecsSystem Spec
.

27 Jan 2014   #2
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

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.

Elevated Program Shortcut - Create for Standard User

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.

Elevated Program Shortcut without UAC Prompt - Create

Hope this helps some,
Shawn
My System SpecsSystem Spec
27 Jan 2014   #3

Windows 7 Pro 32 bit
 
 

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 System SpecsSystem Spec
.


27 Jan 2014   #4
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

You're most welcome. I'm glad it was able to help.
My System SpecsSystem Spec
Reply

 Run program on startup as admin using MMC without UAC




Thread Tools



Similar help and support threads for2: Run program on startup as admin using MMC without UAC
Thread Forum
Solved remove admin elevation for program Software
Program needs to run with admin System Security
auto run admin rights Core Temp program at startup Vista/Windows 7 Software
Install program, but not only in the admin account Software
How do I run a program at startup without using an admin password? System Security

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 06:28 AM.
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