Windows Terminal on Windows 11 with PowerShell sessions
The fix works pretty well, thanks for looking into it.
The only thing I have noticed is that the problem remains if the default terminal is set to "Let Windows decide" (see screenshot below). Setting the default terminal to Windows Terminal implements the fix and works well.
Windows Terminal on Windows 11 with PowerShell sessions
Looking forward to the update. Thanks for the solution!
Windows Terminal on Windows 11 with PowerShell sessions
All good, thanks Richard
Windows Terminal on Windows 11 with PowerShell sessions
It appears as though RDM does not like Windows Terminal being set as the default terminal application on Windows 11 with embedded PowerShell sessions.
Upon launching a PowerShell session from within RDM, normally it will open up a PowerShell console within a tab in RDM.
Since I upgraded to Windows 11, however, I set my default terminal application to Windows Terminal. This is something that can be set either from within the Windows Terminal settings or Windows Settings under Privacy & Security > For developers.
Now when I open a PowerShell session from within RDM, it pops up with a Windows Terminal window instead of being an embedded tab. I wouldn't mind this, but most of our PowerShell sessions are set to run the following command upon launch:
cd Z:\; Try {Import-Module ExchangeOnlineManagement -ErrorAction Stop} Catch {Install-Module ExchangeOnlineManagement -Scope CurrentUser -Force; Import-Module ExchangeOnlineManagement}; Connect-ExchangeOnline -DelegatedOrganization "$DOMAIN_CUSTOM_FIELD1$"The issue here is that the Exchange Online management module first pops up with an authentication window, then it cancels itself immediately and the Exchange module returns the following error:
Error Acquiring Token:
User canceled authentication.
New-ExoPSSession : One or more errors occurred.
At C:\Users\<removed>\Documents\WindowsPowerShell\Modules\ExchangeOnlineManagement\2.0.5\netFramework\ExchangeOnlineManagement.psm1:475
char:30
+ ... PSSession = New-ExoPSSession -ExchangeEnvironmentName $ExchangeEnviro ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [New-ExoPSSession], AggregateException
+ FullyQualifiedErrorId : System.AggregateException,Microsoft.Exchange.Management.ExoPowershellSnapin.NewExoPSSess
ionI also tried with another PowerShell session in RDM that has a similar thing where it launches the Azure AD PowerShell module. A similar behaviour occurs, but instead of the Azure AD authentication window getting cancelled, it freezes instead.
Changing the default terminal to Windows Console Host resolves this problem and the embedded PowerShell session works as normal.
Any ideas on how to resolve this issue or apply a workaround whilst keeping Windows Terminal as the default terminal?
It Glue
Great to hear. Thanks for the update Xavier
It Glue
Is Mac support coming soon? We transitioned about half of our credentials across to the IT Glue integration but then discovered that it doesn't seem to be supported on Mac yet.