Windows PowerShell opens ADAL forms page in background #8408

Closed
opened 2026-01-31 01:28:40 +00:00 by claunia · 3 comments
Owner

Originally created by @JeremyTBradshaw on GitHub (May 21, 2020).

Environment

Windows build number: 10.0.18362.0
Windows Terminal version (if applicable): 1.0.1401.0

Any other software? Yes - MSOnline/AzureAD/ExchangeOnlineManagement Windows PowerShell modules.

Steps to reproduce

When executing Connect-MsolService, Connect-AzureAD, Connect-ExchangeOnline, or any cmdlet that will invoke a Modern Authentication, the webpage/authentication form window opens behind the Windows Terminal window. This doesn't happen in Windows PowerShell when not using it in Windows Terminal.

Expected behavior

The webpage/authentication form window should open in the foreground so that you know it's there, and can enter your credentials.

Actual behavior

Currently, you have to notice that a Windows PowerShell taskbar icon has spawned, and switch to it manually.

Originally created by @JeremyTBradshaw on GitHub (May 21, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none Windows build number: 10.0.18362.0 Windows Terminal version (if applicable): 1.0.1401.0 Any other software? Yes - MSOnline/AzureAD/ExchangeOnlineManagement Windows PowerShell modules. ``` # Steps to reproduce When executing Connect-MsolService, Connect-AzureAD, Connect-ExchangeOnline, or any cmdlet that will invoke a Modern Authentication, the webpage/authentication form window opens behind the Windows Terminal window. This doesn't happen in Windows PowerShell when not using it in Windows Terminal. # Expected behavior The webpage/authentication form window should open in the foreground so that you know it's there, and can enter your credentials. # Actual behavior Currently, you have to notice that a Windows PowerShell taskbar icon has spawned, and switch to it manually.
claunia added the Resolution-Duplicate label 2026-01-31 01:28:40 +00:00
Author
Owner

@DHowett commented on GitHub (May 22, 2020):

Hey, really sorry about that. This is a known limitation with how window handling is done in Terminal. There's a bad old console API that let a text-mode app get a window handle to present on top of. SSH, VSCode, Terminal, etc. do not work with it because they may not have a single window (or may not have a window at all.)

More details in /dup #2988

@DHowett commented on GitHub (May 22, 2020): Hey, really sorry about that. This is a known limitation with how window handling is done in Terminal. There's a bad old console API that let a text-mode app get a window handle to present on top of. SSH, VSCode, Terminal, etc. do not work with it because they may not have a single window (or may not have a window at all.) More details in /dup #2988
Author
Owner

@ghost commented on GitHub (May 22, 2020):

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!

@ghost commented on GitHub (May 22, 2020): 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!
Author
Owner

@JeremyTBradshaw commented on GitHub (May 22, 2020):

Thanks. I couldn't find the original issue when searching, so I'm happy to know there is one already.

@JeremyTBradshaw commented on GitHub (May 22, 2020): Thanks. I couldn't find the original issue when searching, so I'm happy to know there is one already.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#8408