To force any application to run as an administrator (Even, for example, when you open it by double-clicking on an associated file type), create a new registry entry in
\!h Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
This should be a string value with the name set to the path for the executable that you want to run as an administrator. The below example is for Visual Studio 2015:
\!h C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe
The value should be set to the following:
\!h ~ RUNASADMIN
Now, whenever you run this program, it will be run in administrator mode automatically.
Source: StackOverflow: Can you force Visual Studio to always run as an Administrator in Windows 8?