78

We have a program that is having problem starting up on Windows 10. If the program is NOT run as administrator, it popups a "Access Denied" message right before it starts. If we run the program as an administrator, it does NOT popup any error message and loads normally. However, now the program won't run at STARTUP. So, we need to run our program as administrator and be able to automatically run the program at startup.

Update: Even though my question and the duplicate question maybe the same but the answers provided for both questions did not solve my problem. Task Scheduler only starts my application or program as a background process. Thus, my program doesn't load. However, I do see my process in the task manager under background process. That's all.

ThN
  • 1,328

4 Answers4

83

Create a Scheduled Task to trigger at log on.

In the Create Task dialog, select the following:

  1. General (tab), Run with highest privileges
  2. Triggers (tab), New (button), Begin the task, At log on
i_am_root
  • 333
Steven
  • 28,386
33

This is a little old, but I was having the same problems, and none of the above was working. What I did was create a VBScript that ran at startup that opened said program.

  1. Right-click on the program, go to properties, then compatibility and check "Run as Administrator"

  2. Create the VBScript using a text editor (I use Notepad++)

Script:

Set WshShell = CreateObject("WScript.Shell" ) 
WshShell.Run """C:\Program Files (x86)\File\Program.exe""", 0 'Must quote command if it has spaces; must escape quotes
Set WshShell = Nothing

Note: that C:\Program Files (x86)\File\Program.exe is the full path to the program with extension. Also, make sure to save it as a .vbs

  1. Now place the VBScript in the startup folder:

    %AppData%\Microsoft\Windows\Start Menu\Programs\Startup

Or, alternatively access it by Win+Rshell:startupEnter

I used this instead of a batch file because I did not want that ugly command window showing up.

Andrew
  • 394
2

Well why don't you simply copy the shortcut of the program to the Startup folder and on its properties, enable the administrator permissions on the Compatibility tab?

-2

You can try double checking your Security tab in the Properties of the program/app and see if the users/groups all have "Full Control". Im not sure if that will fix but its worth a try