I use shortcut +R to run Windows Terminal [wt
], but I cannot run it as Admin, which causes problems when I install something via choco
.
- To open it as Admin, I have to:
Press > Right-click Terminal > More > Run as Admin > ◀ > ENTER - Some solutions say to use the following, but it can only open
powershell
, notwt
:
+X > A > ◀ > ENTER - While others say to use the following, but it also doesn't work:
+R > SHIFT+CTRL+ENTER
How do I open Windows Terminal as Admin via a command?
Best Answer
A shell in Windows Terminal [
wt
] can be launched/relaunched as Admin in three ways:wt
:$Profile
]:%UserProfile%\Documents\Windows Powershell\Microsoft.PowerShell_profile.ps1
%UserProfile%\Documents\Windows Powershell\profile.ps1
Relaunch-Admin
function to profile, invoking withRelaunch-Admin
or aliaspsadmin
: