Hi,
I asked in discord but I think this is probably a better place.
I’ve just started testing UA in our environment and have an issue with what the output displays or doesn’t.
I have a one-line script that just runs Connect-ExchangeOnline -Device. In powershell 7, I get this output:
PS C:\Users\********> Connect-ExchangeOnline -Device ---------------------------------------------------------------------------- The module allows access to all existing remote PowerShell (V1) cmdlets in addition to the 9 new, faster, and more reliable cmdlets. |--------------------------------------------------------------------------| | Old Cmdlets | New/Reliable/Faster Cmdlets | |--------------------------------------------------------------------------| | Get-CASMailbox | Get-EXOCASMailbox | | Get-Mailbox | Get-EXOMailbox | | Get-MailboxFolderPermission | Get-EXOMailboxFolderPermission | | Get-MailboxFolderStatistics | Get-EXOMailboxFolderStatistics | | Get-MailboxPermission | Get-EXOMailboxPermission | | Get-MailboxStatistics | Get-EXOMailboxStatistics | | Get-MobileDeviceStatistics | Get-EXOMobileDeviceStatistics | | Get-Recipient | Get-EXORecipient | | Get-RecipientPermission | Get-EXORecipientPermission | |--------------------------------------------------------------------------| To get additional information, run: Get-Help Connect-ExchangeOnline or check https://aka.ms/exops-docs Send your product improvement suggestions and feedback to exocmdletpreview@service.microsoft.com. For issues related to the module, contact Microsoft support. Don't use the feedback alias for problems or support issues. ---------------------------------------------------------------------------- **To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code ******** to authenticate.**
In UA, the final line including the device login code is missing.
I understand there are other ways to run the authentication, but device login is a simple way for me to publish scripts to users with existing access to these services.
Why would UA be cutting this info out? Shouldn’t it just output the same as Powershell itself? I could probably work around this instance but I need to understand what the UA shell will output for me as I work through testing more scripts.
Thanks
Product: PowerShell Universal
Version: 1.5.14