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?