|
1 | 1 | ---
|
2 | 2 | title: Run as administrator
|
3 | 3 | description: Learn how to run Visual Studio as an administrator.
|
4 |
| -ms.date: 10/26/2021 |
| 4 | +ms.date: 11/23/2022 |
5 | 5 | ms.topic: conceptual
|
6 | 6 | helpviewer_keywords:
|
7 | 7 | - Visual Studio, user permissions
|
@@ -31,44 +31,63 @@ You can do nearly everything in the Visual Studio IDE as a typical user. You nee
|
31 | 31 | |Installation|Install or modify Visual Studio.|[Install Visual Studio](../install/install-visual-studio.md), [Modify Visual Studio](../install/modify-visual-studio.md)|
|
32 | 32 | ||Install, update, or remove local Help content.|[Install and manage local Help content](../help-viewer/install-manage-local-content.md)|
|
33 | 33 | |Toolbox|Add classic COM controls to **Toolbox**.|[Toolbox](../ide/reference/toolbox.md)|
|
34 |
| -|Building|Use post-build events that register a component.|[Understand custom build steps and build events](/cpp/build/understanding-custom-build-steps-and-build-events)| |
35 |
| -||Include a registration step when you build C++ projects.|| |
| 34 | +|Building|Use post-build events that register a component, or include a registration step when you build C++ projects. |[Understand custom build steps and build events](/cpp/build/understanding-custom-build-steps-and-build-events)| |
36 | 35 | |Debugging|Debug applications that run with elevated permissions.|[Debugger settings and preparation](../debugger/debugger-settings-and-preparation.md)|
|
37 | 36 | ||Debug applications that a run under a different user account, such as ASP.NET websites.|[Debug ASP.NET and AJAX applications](../debugger/how-to-enable-debugging-for-aspnet-applications.md)|
|
38 | 37 | ||Debug in Zone for XAML Browser Applications (XBAP).|[WPF host (PresentationHost.exe)](/dotnet/framework/wpf/app-development/wpf-host-presentationhost-exe)|
|
39 | 38 | ||Use the emulator to debug cloud service projects for Microsoft Azure.|[Debug a cloud service in Visual Studio](/azure/vs-azure-tools-debug-cloud-services-virtual-machines)|
|
40 | 39 | ||Configure a firewall for remote debugging.|[Remote debugging](../debugger/remote-debugging.md)|
|
41 |
| -|Performance tools|Attaching to an elevated application.|[Beginners guide to performance profiling](../profiling/beginners-guide-to-performance-profiling.md)| |
| 40 | +|Performance tools|Attaching to an elevated application.|[Measure application performance](../profiling/beginners-guide-to-performance-profiling.md)| |
42 | 41 | ||Use the GPU Profiler.|[GPU profiling](../profiling/gpu-usage.md)|
|
43 |
| -|Deployment|Deploy a web application to Internet Information Services (IIS) on a local computer.|[Deploy an ASP.NET web app using Visual Studio](/aspnet/web-forms/overview/older-versions-getting-started/deployment-to-a-hosting-provider/)| |
| 42 | +|Deployment|Deploy a web application to Internet Information Services (IIS) on a local computer.|[ASP.NET web deployment using Visual Studio](/aspnet/web-forms/overview/deployment/visual-studio-web-deployment/introduction)| |
44 | 43 | |Development|Developing SharePoint Solutions.|[Create SharePoint solutions](../sharepoint/create-sharepoint-solutions.md)|
|
45 | 44 |
|
46 | 45 | ## Run Visual Studio as an administrator
|
47 | 46 |
|
48 |
| -If you need to run Visual Studio as an administrator, follow these steps to open the IDE: |
| 47 | +If you need to run Visual Studio as an administrator, here's how. |
49 | 48 |
|
50 |
| -> [!NOTE] |
51 |
| -> These instructions are for Windows 10. They are similar for other versions of Windows. |
| 49 | +### Use the Start menu |
52 | 50 |
|
53 |
| -1. Open the **Start** menu, and scroll to Visual Studio. |
| 51 | +1. Depending on the version of Windows you're using, perform one of the following steps: |
54 | 52 |
|
55 |
| -1. From the right-click or context menu of **Visual Studio 2019** or **Visual Studio 2022**, select **More** > **Run as administrator**. |
| 53 | + - In **Windows 10**, open the **Start** menu, and then scroll to Visual Studio. |
| 54 | + - In **Windows 11**, select the Start button, and then in the **Search** box, type **Visual Studio**. |
| 55 | + |
| 56 | +1. Next, right-click either **Visual Studio 2019** or **Visual Studio 2022**, and then select **More** > **Run as administrator**. |
56 | 57 |
|
57 | 58 | When Visual Studio starts, **(Administrator)** appears after the product name in the title bar.
|
58 | 59 |
|
59 |
| -You can also modify the application shortcut to always run with administrative permissions: |
| 60 | +### Modify the shortcut |
| 61 | + |
| 62 | +You can also modify the application shortcut to always run with administrative permissions. Here's how. |
| 63 | + |
| 64 | +#### Windows 10 |
60 | 65 |
|
61 | 66 | 1. Open the **Start** menu, scroll to the version of Visual Studio that you're using, and then select **More** > **Open file location**.
|
62 | 67 |
|
63 | 68 | 1. In **File Explorer**, locate the **Visual Studio** shortcut for the version that you're using. Then, right-click the shortcut and select **Send to** > **Desktop (create shortcut)**.
|
64 | 69 |
|
65 |
| -1. On the **Windows** desktop, right-click the **Visual Studio** shortcut, and then select **Properties**. |
| 70 | +1. On the **Windows 10** desktop, right-click the **Visual Studio** shortcut, and then select **Properties**. |
66 | 71 |
|
67 | 72 | 1. Select the **Advanced** button, and then select the **Run as administrator** check box.
|
68 | 73 |
|
69 | 74 | 1. Select **OK**, and then select **OK** again.
|
70 | 75 |
|
| 76 | +#### Windows 11 |
| 77 | + |
| 78 | +1. Select the **Start** button, and then in the **Search** box, enter **Visual Studio**. |
| 79 | + |
| 80 | +1. From the search results, right-click either **Visual Studio 2019** or **Visual Studio 2022**, and then select **Open file location**. |
| 81 | + |
| 82 | +1. In **File Explorer**, locate the **Visual Studio** shortcut for the version that you're using. Then, right-click the shortcut and select **Show more options** > **Send to** > **Desktop (create shortcut)**. |
| 83 | + |
| 84 | +1. On the **Windows 11** desktop, right-click the **Visual Studio** shortcut, and then select **Properties**. |
| 85 | + |
| 86 | +1. Next, select the **Advanced** button, and then select the **Run as administrator** check box. |
| 87 | + |
| 88 | +1. Select **OK** two times to close the dialog. |
| 89 | + |
71 | 90 | ## See also
|
72 | 91 |
|
73 |
| -- [Port, migrate, and upgrade Visual Studio projects](../porting/port-migrate-and-upgrade-visual-studio-projects.md) |
74 | 92 | - [Install Visual Studio](../install/install-visual-studio.md)
|
| 93 | +- [Port, migrate, and upgrade Visual Studio projects](../porting/port-migrate-and-upgrade-visual-studio-projects.md) |
0 commit comments