Edit a shortcut to run as administrator

I use Visual Studio, which I usually need to have running as Administrator - I've set the startup shortcut to run as admin by default. Every time there's a Visual Studio update, I have to manually

  1. Right click the item in the "Start" menu
  2. Choose Find Item Location
  3. Right click the shortcut
  4. Choose Properties
  5. Click "Advanced"
  6. Check the "Run as administrator" option

Is there any way to do this via a batch file, that I can run every time Visual Studio is updated? In other words, how can I edit a shortcut so that the "Run as administrator" option is selected?

1

1 Answer

Visual Studio updates replace the executable, but do not change its name.

You may create a shortcut to the executable yourself (not by the installation) and mark it as "Run as administrator". This should not be affected by Visual Studio updates.

You may also add your project as parameter on the call to the Visual Studio executable, if you would like to create icons for your projects.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like