Skip to content

Run VS as Admin

Published: at 03:49 AM

To run Visual Studio (VS) with administrator privileges in Windows, follow these steps:

Steps to Run Visual Studio as Admin:

  1. Find the Visual Studio Shortcut: Locate the shortcut for Visual Studio on your desktop or in the Start menu.

  2. Right-click the Shortcut: Right-click on the shortcut of Visual Studio, and then click on Properties from the context menu.

  3. Open Properties Window: In the Properties window, go to the Shortcut tab.

  4. Advanced Settings: Click on the Advanced button at the bottom of the window.

  5. Enable Run as Administrator: In the Advanced Properties window, check the box next to Run as administrator.

  6. Apply Changes: Click OK to confirm, and then click OK again to close the Properties window.

  7. Open Visual Studio: Double-click the Visual Studio shortcut to open the program. If prompted by User Account Control (UAC), click Yes to allow Visual Studio to run with full administrative permissions.

Shortcut Code Example:

If you want to set Visual Studio to open specific files or projects with administrator privileges, you can modify the shortcut’s Target field in the Properties window to include the file or project path.

Example Target code for Visual Studio with a specific project:

"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe" "C:\Path\To\Your\Project\ProjectName.sln"

To run VS with administrator privileges:

  1. Right-click on the Shortcut to open Properties.
  2. In the Target field, add the path to your project file after the devenv.exe executable, as shown above.

Additional Notes:

By following these steps, you ensure that Visual Studio has the required permissions to run with full administrative access on your system.


Previous Post
Windows 7, IE 10, Virtual Machine Login Instructions
Next Post
Word Resize Macro