I'm using Windows 8.1 x64 and I'd like to run a program with administrator privileges on user login.
I tried to make a shortcut of the program and ticked "run as administrator" in the properties of the shortcut or the program itself, and put the shortcut in C:\Users\MyUser\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
or C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp
, but ticking the box just made it invalid.
Then I edited the program by Resource Hacker to modify its manifest so that administrator privileges were required for this program. This also made shortcuts under start up directories invalid. So after this, I tried to add the program to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
but it didn't work, either.
How on earth can I run a program with administrator privileges on user login?
runas
runas /env /user:domain\Administrator X:\path\to\the\program.exe
and put it in the auto start up directory?runas
, and save the Administrator credentials, although that poses a security risk for obvious reasons. You are 100% this program required administrator permission to work properly?