timcappalliAfter installing the latest stable version of Powershell which is 7.1.3, I noticed that some cmdlets are working by opening a new tab in the default browser and after completing the authentication (in the browser way so it supports each method that the default browser support which basically is.. all of them) it comes back to the PowerShell window with logged in session. It is quite a smooth user experience which is exactly what I wanted.
However, not all of the cmdlets work like that. Some of them, e.g. Connect-MsolService/Connect-AzureAD, work only in compatibility mode (-UseWindowsPowershell as an argument) that uses the "legacy" method in which the authentication window pops up. If I try to run them outside of compatibility mode, I get an error message:
"Connect-MsolService: Could not load type 'System.Security.Cryptography.SHA256Cng' from assembly 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'."
Maybe I've not done something important or it's not finished yet or it's due to some compatibility issues underneath.
Nonetheless, that is already a bit better, so I'm looking forward to hearing some good news from you, thanks again!