Home » Questions » Computers [ Ask a new question ]

How to always launch vs.net as administrator

How to always launch vs.net as administrator

I need vs.net to always run as administrator.

Asked by: Guest | Views: 292
Total answers/comments: 3
bert [Entry]

"When you click on a .sln file, C:\Program Files (x86)\Common Files\microsoft shared\MSEnv\vslauncher.exe is run.

If you set visual studio (devenv.exe) to always run as administrator, vslauncher won’t be able to run visual studio. Instead, you need to set just vslauncher to run as admin:

Right click the vslauncher.exe file, pick properties
pick Compatability
select “Run this program as an administrator”, hit OK.

A windows update will keep vslauncher from launching devenv as admin. If after setting vslauncher to admin Visual Studio still doesn't launch as admin, you need to

uninstall “Update for Windows 7” KB2492386.

Next, you want manually launching Visual Studio to also run as administrator. To do this,

find the shortcut you use to start Visual Studio (e.g. the one pinned to start menu),
right click on the shortcut and pick Properties
on the ""Shortcut tab"" hit Advanced
and select ‘Run as administrator’.

Make sure you do it via the Shortcut tab. If you do the same thing via the Compatability tab, it will set it on the underlying executable, and double clicking solution files won’t work right anymore."
bert [Entry]

"Use the same property window and set Windows Explorer (or any other file managers you are using, such as FAR) to run as an administrator.

The privileges granted to Windows Explorer will be applied to a .sln file you start by double-clicking on it."
"Use the same property window and set Windows Explorer (or any other file managers you are using, such as FAR) to run as an administrator.

The privileges granted to Windows Explorer will be applied to a .sln file you start by double-clicking on it."
bert [Entry]

"the solution posted at the link below worked for me:

how-to-always-launch-vs-net-as-administrator

To sum up you need to:

Make a backup copy of VSLauncher.exe
Extract the manifest from VSLauncher.exe using the mt.exe tool
Edit the file as outlined in the post (set it to require admin privileges)
Attach the new (edited) manifest file into VSLauncher.exe using the mt.exe tool"