Terminal: Run Windows Terminal as Administrator at startup

Created on 31 Oct 2019  Â·  4Comments  Â·  Source: microsoft/terminal

Edit: By startup, I mean _Windows Operating System startup_.

Description of the new feature/enhancement

As a user who works primarily with the terminal,

I want Windows Terminal to offer me a way of running it as Administrator at Windows startup

So that I can start working instantly after logging in

Additional Notes

  • I tried setting C:\Users\me\AppData\Local\Microsoft\WindowsApps\wt.exe with "right click > Properties > Compatibility > Run this program as Administrator" but it didn't make it run as Administrator (I could confirm by renaming folders in the Program Files folder)
  • I tried setting C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_0.6.2951.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe as well, but it didn't make Windows Terminal run as Administrator.
  • Given the two settings above, I tried setting pwsh.exe for being run as administrator, but

    • when running Windows Terminal (set up for being run as Administrator through its Properties), it opens then immediately closes.

    • when manually running Windows Terminal as Administrator (right click > run as Administrator), it works.

Proposed technical implementation details

Grant access to an exe file that we can effectively "right click > Properties > Compatibility > Run this program as Administrator".

Issue-Feature Needs-Tag-Fix Needs-Triage Resolution-Won't-Fix

All 4 comments

There are two ways that I know of, to start the Terminal as administrator, _right now_.

  1. Hold down Ctrl+Shift when you click the Terminal icon on your taskbar.
  2. See screenshot. Right-click on WT icon (1), right-click on "Windows Terminal (Preview)" (2), left-click on "Run as administrator."
    wt_run_as_admin

Thank you for your comment.

I meant Windows Operating System startup, as in when you boot your machine, and programs are run automatically, not startup as in when I run Windows Terminal.

I edited the original post. Thanks for pointing out this ambiguity!

What I want is

  • Start my computer
  • Log in
  • Go to the bathroom
  • See Windows Terminal run as Administrator waiting for me when I come back

Having Windows Terminal run on Windows OS startup is easily done - having it run on startup _as Administrator_ is what I couldn't achieve

I'm gonna go out on a limb here, and guess that your feature request won't be implemented. That'd be a HUGE security hole, and defeats the purpose of UAC in the first place. That's my $.02. ¯\_(ツ)_/¯

This is something we can't do with our current architecture. Thanks for the request!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alabuzhev picture alabuzhev  Â·  3Comments

dev-logan picture dev-logan  Â·  3Comments

mdtauk picture mdtauk  Â·  3Comments

carlos-zamora picture carlos-zamora  Â·  3Comments

TayYuanGeng picture TayYuanGeng  Â·  3Comments