Starting Admin PowerShell Terminal window via taskbar right-click opens multiple windows #22280

Closed
opened 2026-01-31 08:08:46 +00:00 by claunia · 1 comment
Owner

Originally created by @usr97629238 on GitHub (Sep 12, 2024).

Windows Terminal version

1.20.11781.0

Windows build number

10.0.19045.0

Other Software

No response

Steps to reproduce

Launch Admin PowerShell Terminal window via taskbar right-click to select a corresponding Profile.
Just in case the settings excerpt is as follows:

{
    "alwaysShowNotificationIcon": true,
    "autoHideWindow": false,
    "confirmCloseAllTabs": false,
    "firstWindowPreference": "persistedWindowLayout",
    "focusFollowMouse": true,
    "profiles": 
    {
        "list": 
        [
            {
                "name": "Windows PowerShell (Admin)",
                "elevate": true,
                "altGrAliasing": true,
                "antialiasingMode": "grayscale",
                "closeOnExit": "automatic",
                "colorScheme": "Campbell Powershell",
                "commandline": "%SystemRoot%\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
                "cursorShape": "bar",
                "hidden": false,
                "icon": "ms-appx:///ProfileIcons/{61c54bbd-c2c6-5271-96e7-009a87ff44bf}.png",
                "padding": "8, 8, 8, 8",
                "snapOnInput": true,
                "startingDirectory": "%USERPROFILE%",
                "useAcrylic": false
            },
        ]
    },
    "showTabsInTitlebar": true,
    "tabWidthMode": "equal",
    "useAcrylicInTabRow": true,
    "windowingBehavior": "useAnyExisting"
}

Expected Behavior

To start 1 PowerShell Terminal shell

Actual Behavior

It opens multiple windows:

  • if there were no prior Terminal windows open it starts 3: 1 for non-elevated PowerShell Terminal window and 2 windows for elevated
  • if there is an open non-elevated PowerShell Terminal window it starts 2 elevated PowerShell Terminal windows
Originally created by @usr97629238 on GitHub (Sep 12, 2024). ### Windows Terminal version 1.20.11781.0 ### Windows build number 10.0.19045.0 ### Other Software _No response_ ### Steps to reproduce Launch Admin PowerShell Terminal window via taskbar right-click to select a corresponding Profile. Just in case the settings excerpt is as follows: ``` { "alwaysShowNotificationIcon": true, "autoHideWindow": false, "confirmCloseAllTabs": false, "firstWindowPreference": "persistedWindowLayout", "focusFollowMouse": true, "profiles": { "list": [ { "name": "Windows PowerShell (Admin)", "elevate": true, "altGrAliasing": true, "antialiasingMode": "grayscale", "closeOnExit": "automatic", "colorScheme": "Campbell Powershell", "commandline": "%SystemRoot%\\System32\\WindowsPowerShell\\v1.0\\powershell.exe", "cursorShape": "bar", "hidden": false, "icon": "ms-appx:///ProfileIcons/{61c54bbd-c2c6-5271-96e7-009a87ff44bf}.png", "padding": "8, 8, 8, 8", "snapOnInput": true, "startingDirectory": "%USERPROFILE%", "useAcrylic": false }, ] }, "showTabsInTitlebar": true, "tabWidthMode": "equal", "useAcrylicInTabRow": true, "windowingBehavior": "useAnyExisting" } ``` ### Expected Behavior To start 1 PowerShell Terminal shell ### Actual Behavior It opens multiple windows: - if there were no prior Terminal windows open it starts 3: 1 for non-elevated PowerShell Terminal window and 2 windows for elevated - if there is an open non-elevated PowerShell Terminal window it starts 2 elevated PowerShell Terminal windows
claunia added the Needs-TriageIssue-Bug labels 2026-01-31 08:08:46 +00:00
Author
Owner

@similar-issues-ai[bot] commented on GitHub (Sep 12, 2024):

We've found some similar issues:

  • #15738 , similarity score: 81%

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

@similar-issues-ai[bot] commented on GitHub (Sep 12, 2024): We've found some similar issues: - #15738 , similarity score: 81% If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue. > Note: You can give me feedback by 👍 or 👎 this comment.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#22280