Launching multiple terminals with "elevate" : true throws exception #21259

Closed
opened 2026-01-31 07:37:58 +00:00 by claunia · 2 comments
Owner

Originally created by @derekantrican on GitHub (Feb 15, 2024).

Windows Terminal version

1.19.10302.0

Windows build number

10.0.22621.3155

Other Software

No response

Steps to reproduce

Add the following profiles:

{
    "commandline": "%SystemRoot%\\System32\\cmd.exe",
    "guid": "{fb65b380-fe0c-471f-916d-014351e5ffc7}",
    "hidden": false,
    "name": "test1",
    "elevate": true,
    "suppressApplicationTitle": true
},
{
    "commandline": "%SystemRoot%\\System32\\cmd.exe",
    "guid": "{b2d0b88c-f804-4d47-b02e-2d441b66adba}",
    "hidden": false,
    "name": "test2",
    "elevate": true,
    "suppressApplicationTitle": true
},
{
    "commandline": "%SystemRoot%\\System32\\cmd.exe",
    "guid": "{1305f78a-e143-4dd5-8af8-30805c6a957b}",
    "hidden": false,
    "name": "test3",
    "elevate": true,
    "suppressApplicationTitle": true
}

Add the following startupActions setting:

"startupActions": "new-tab -p \"test1\" ; new-tab -p \"test2\" ; new-tab -p \"test3\"",

Launch Terminal

Expected Behavior

Removing the "elevate" : true, from each profile will allow Terminal to launch successfully. I would expect the same resulting behavior (3 profile tabs in single Terminal window), but elevated.

Actual Behavior

Instead, the following error message is displayed:

shell:AppsFolder\Microsoft.WindowsTerminal_8wekyb3d8bbwe!App
The group or resource is not in the correct state to perform the requested operation.

image

Originally created by @derekantrican on GitHub (Feb 15, 2024). ### Windows Terminal version 1.19.10302.0 ### Windows build number 10.0.22621.3155 ### Other Software _No response_ ### Steps to reproduce Add the following profiles: ```json { "commandline": "%SystemRoot%\\System32\\cmd.exe", "guid": "{fb65b380-fe0c-471f-916d-014351e5ffc7}", "hidden": false, "name": "test1", "elevate": true, "suppressApplicationTitle": true }, { "commandline": "%SystemRoot%\\System32\\cmd.exe", "guid": "{b2d0b88c-f804-4d47-b02e-2d441b66adba}", "hidden": false, "name": "test2", "elevate": true, "suppressApplicationTitle": true }, { "commandline": "%SystemRoot%\\System32\\cmd.exe", "guid": "{1305f78a-e143-4dd5-8af8-30805c6a957b}", "hidden": false, "name": "test3", "elevate": true, "suppressApplicationTitle": true } ``` Add the following `startupActions` setting: ``` "startupActions": "new-tab -p \"test1\" ; new-tab -p \"test2\" ; new-tab -p \"test3\"", ``` Launch Terminal ### Expected Behavior Removing the `"elevate" : true,` from each profile will allow Terminal to launch successfully. I would expect the same resulting behavior (3 profile tabs in single Terminal window), but elevated. ### Actual Behavior Instead, the following error message is displayed: > shell:AppsFolder\Microsoft.WindowsTerminal_8wekyb3d8bbwe!App > The group or resource is not in the correct state to perform the requested operation. ![image](https://github.com/microsoft/terminal/assets/1558019/6f6b1635-450d-492e-85e4-22bba9ffaa1a)
claunia added the Issue-BugResolution-Duplicate labels 2026-01-31 07:37:58 +00:00
Author
Owner

@carlos-zamora commented on GitHub (Feb 21, 2024):

Thanks for filing! We're going to mark this as a /dup of #14442 because it's the same root cause.

@carlos-zamora commented on GitHub (Feb 21, 2024): Thanks for filing! We're going to mark this as a /dup of #14442 because it's the same root cause.
Author
Owner

@microsoft-github-policy-service[bot] commented on GitHub (Feb 21, 2024):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@microsoft-github-policy-service[bot] commented on GitHub (Feb 21, 2024): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report! <!-- Policy app identification https://img.shields.io/static/v1?label=PullRequestIssueManagement. -->
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21259