microsoft / microsoft/terminal

start wt.exe with parameter fails in administrator mode

Open
#14,861 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Commandline Help Wanted Issue-Bug Priority-2 Product-Terminal
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

### Windows Terminal version

1.16.230126001

### Windows build number

10.0.19045.2604

### Other Software

_No response_

### Steps to reproduce

Open cmd.exe and type "wt ping google.de".
![image](https://user-images.githubusercontent.com/60921150/219412574-59faacd7-8d11-4719-b67a-745dd5b86725.png)

### Expected Behavior

Open wt with cmd.exe and execute "ping google.de".
![image](https://user-images.githubusercontent.com/60921150/219412701-c62d890d-8f60-4792-9978-55e5ff769fda.png)

### Actual Behavior

If wt runs with option "run profile as administrator" cmd.exe opens but parameter (ping google.de) is not executed.
![image](https://user-images.githubusercontent.com/60921150/219412885-2de783c8-3836-4ce9-b26a-aab5addb34e6.png)
![image](https://user-images.githubusercontent.com/60921150/219412971-57fd8b57-0a2d-41b0-878a-bf13e701369d.png)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with `wt ping google.de` in cmd.exe while the profile is configured to run as administrator, then trace how arguments are passed when launching the elevated profile. Done means the elevated cmd.exe receives and executes `ping google.de` just as the non-elevated launch does; no source file or test is named in the issue.

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.