Startup program run as administrator
That fixed the "running in the background" for me. That was for a AutoHotkey script, don't know if it applies to your problem. At first it was not working for me either, but only because I had set the trigger to "At startup" which is wrong because my program is not a service, it's an application with a user interface. Instead, I had to set the trigger to "At logon" and select MY windows user.
It worked right away after that! Show 4 more comments. We have done that and my program still raises Access Denied error message. The "Run as administrator" option is usually present in the Compatibility tab of the properties window — Surya Teja Karra. You are right. First, we have enabled Run with highest privilege checkbox in the compatibility section for the shortcut.
Then, clicked on the icon, it still popped the error message. Then, we moved the shortcut into startup folder, it still raised the error message. We even tried Task Scheduler and still the same. I even tried batch file in the task scheduler like someone suggested. The only time it loads normally is when we right click on the actual executable file for my program and click on Run as an Administrator option in the popup menu.
The only user is the admin in sys — ThN. You know back in the days, XP had this "Run as" context menu with which I could run a program as another user had I got the authorization to do so. This doesn't work.
Add a comment. The Overflow Blog. Podcast Helping communities build their own LTE networks. Podcast Making Agile work for data science. Featured on Meta.
New post summary designs on greatest hits now, everywhere else eventually. Linked Related 4. Hot Network Questions. Super User works best with JavaScript enabled.
Accept all cookies Customize settings. You be prompted for admin credentials when you click ok. Unless the program requires a GUI this should work with either of your options. TaskSched is designed for this kind of thing. For some reason, the program won't work as a service.
It has to run as an App. Not sure why. If an update requires a reboot, it will inform the end user that it needs to reboot, then they have a chance to continue or cancel. Which is why I was sticking with when user logs on.
I will give it a go as system startup and see if it will continue on - good idea :. I could try the VB-script, not really understanding what it's doing, but this would be on every laptop in our large corporate network and I know that runas isn't a good idea as it allows admin rights for other programs Not saying that vbscript would do the same, guess I have some work to do to test.
The update of the OP sounds a lot like what I'm running into, both solutions didn't work for him and it was because he also couldn't run as a service. I don't need the user to install this program, I can push it out multiple ways - that's not the problem. I'm just struggling with running the program as Admin during login. The program looks for driver updates and runs them silently unless a reboot is needed, then prompts.
This is why I want it to run when the user logs in, so it can reboot at the end-users convenient time. Strangely enough, this program specifically says it doesn't have any registry keys or system files.
I really don't want to spend anymore time on schtask but I'll try again tomorrow so I can get my facts straight to report back. In short - I've tried with the settings you specified but it's not working You can use Run as to start an application as an administrator if you want to perform administrative tasks when you are logged on as a member of another group, such as the Users or Power Users group.
Skip to main content. This browser is no longer supported. Download Microsoft Edge More info. Contents Exit focus mode. Please rate your experience Yes No.
0コメント