Maintain control of your Microsoft 365 data
Post Reply
Palmero
Influencer
Posts: 12
Liked: 1 time
Joined: Jul 12, 2021 6:30 pm
Full Name: Juan Palmero
Contact:

PowerShell command no longer works after switching to modern authentication

Post by Palmero »

Hello.

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
No errors, I simply get:
Generating Protected Mailboxes Report...
Please wait..., Generating report...

The commands run on a schedule using a service account.

Any ideas, suggestions greatly appreciated.
Mike Resseler
Product Manager
Posts: 8191
Liked: 1322 times
Joined: Feb 08, 2013 3:08 pm
Full Name: Mike Resseler
Location: Belgium
Contact:

Re: PowerShell command no longer works after switching to modern authentication

Post by Mike Resseler »

Hey @Palmero ,

Can you please create a support call for this (and post the support case ID here). I am not aware that this PS cmdlet would break when you switch to modern authentication.
Palmero
Influencer
Posts: 12
Liked: 1 time
Joined: Jul 12, 2021 6:30 pm
Full Name: Juan Palmero
Contact:

Re: PowerShell command no longer works after switching to modern authentication

Post by Palmero »

Update:

The report did complete after approximately 1.5 hours. Not sure why it's taking much longer than before. I spoke with a colleague, and we suspect a combination of stronger authentication combined with growth in the database.

In any case, it is working.

Thank you.
Palmero
Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests