<!–
–>
Although Windows Terminal lets you access virtually any command-line experience, such as Command Prompt, PowerShell, and Linux, by default on Windows 10, the app always runs in user mode since there is no option to always open it elevated as an administrator.
While this behavior is by design, there is a workaround you can use that allows you to configure Windows Terminal to always run as an administrator using a shortcut approach, instead of having to do the extra steps to access the option from the app context menu.
In this guide, you will learn the steps to configure the command-line experience to open elevated by default.
Always open Windows Terminal as administrator
Use the following steps to always run Windows Terminal as administrator:
-
Right-click the Windows 10 Desktop.
-
Select the New submenu and choose the Shortcut option.
-
In the path field, type the following path:
%LocalAppData%\Microsoft\WindowsApps\wt.exe
-
Click the Next button.
-
Confirm a name for the shortcut – for example, Windows Terminal.
-
Click the Finish button.
.Windows_Software_Technology-Big-343 { display:inline-block; width: 300px; height: 600px; } @media(min-width: 500px) { .Windows_Software_Technology-Big-343 { width: 300px; height: 600px;} } -
Right-click the newly created shortcut and select the Properties option.
-
Click the Shortcut tab.
-
Click the Advanced button.
-
Check the Run as administrator option for the Windows Terminal shortcut.
-
Click the OK button.
-
(Optional) Click the Change Icon button.
-
In the Look for icons in this file field, type the following path and press Enter:
%systemroot%\system32\shell32.dll
-
Select an icon you want to use.
-
Click the OK button.
-
Click the Apply button.
-
Click the OK button.
Once you complete the steps, you can double-click the shortcut to open always open the Windows Terminal as administrator.
If you want, you could also drag the shortcut to the taskbar to pin it. Or you can right-click the shortcut and select the Pin to Start option to run the app as an administrator from the Start menu.
Post a Comment