-1

Is there a handy shortcut or something similar to open the windows terminal preview as administrator?

The best solution for me so far:

 1. Press windows key
 2. search for terminal preview
 3. right-click run as administrator
Cowas
  • 175
  • 1
  • 10
  • Does this answer your question? [How to create a Run As Administrator shortcut using Powershell](https://stackoverflow.com/questions/28997799/how-to-create-a-run-as-administrator-shortcut-using-powershell) – JosefZ Sep 03 '20 at 14:03

2 Answers2

2

I guess the standard way of creating a shortcut should do it:

  • In a command box type where wt.exe to get the file path.
    This will most probably return C:\Users\<yourname>\AppData\Local\Microsoft\WindowsApps\wt.exe
  • Open the path and right-click wt.exe (eventhough in there it shows 0 kb)
  • Select 'Create Shortcut'
  • Right-click the new shortcut and in the General tab change the name to Windows Terminal (Admin)
  • In the Shortcut tab, click the Advanced button and check the box "Run as administrator"
  • click OK
  • Drag the shortcut to your desktop
Theo
  • 49,970
  • 8
  • 20
  • 38
0

Theo's answer didn't work for me, but this one did. Copied:

  1. Right click -> New -> Shortcut Type in C:\Windows\System32\cmd.exe /c start /b %USERPROFILE%\AppData\Local\Microsoft\WindowsApps\wt.exe for the location

  2. Give whatever name you want to give, finish.

  3. List item

  4. Right click on the newly created shortcut -> Properties -> Advanced -> Run as administrator