After switching to modern authentication, the following just hangs.
Code: Select all
$Path = "c:\temp"
$Org = Get-VBOOrganization -Name 'Contoso - Microsoft 365'
Get-VBOMailboxProtectionReport -Path $Path -Format csv -Organization $Org
Generating Protected Mailboxes Report...
Please wait..., Generating report...
The commands run on a schedule using a service account.
Any ideas, suggestions greatly appreciated.