microsoft / microsoft/terminal

The new 'Run as Administrator' feature returns a 'cannot find WindowsTerminal.exe' error

Open
#12,369 30 comments 0 reactions 0 assignees View on GitHub
Issue-Bug Needs-Tag-Fix Priority-1 Product-Terminal
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

### Windows Terminal version

1.13.10336.0

### Windows build number

10.0.19044.1466

### Other Software

_No response_

### Steps to reproduce

Holding down Ctrl when clicking the + button to open a new window as admin opens the UAC prompt for elevation but after entering credentials, it returns an error saying WindowsTerminal.exe cannot be found.

### Expected Behavior

_No response_

### Actual Behavior

Windows cannot find 'C;\Program Files\WindowsApps\Microsoft.Windows.TerminalPreview_1.13.10336...\WindowsTerminal.exe'. Make sure you typed the name correctly, and then try again.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the Ctrl-click on the + button flow described in the issue and inspect how it launches WindowsTerminal.exe after the UAC prompt. Confirm the executable path used for elevation and verify that an elevated new window opens without the “cannot find” error.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.