Unable to get full list of users with Legal Hold

Mani 396 Reputation points
2025-01-16T19:36:53.88+00:00

Hello All,

I tried this command to get all users who are placed on Holds

Get-Mailbox -ResultSize unlimited | where{$_.InPlaceHolds -ne $null} | FL DisplayName,PrimarySmtpAddress,RecipientTypeDetails,InPlaceHolds | Export-Csv -Path "C:\script

s\Holdreport.csv"-NoTypeInformation

But the csv is not showing the exact results, instead it showing the results like the below image,

User's image

Can someone suggest what's missing here and how to get users list with Legal hold enabled in my organization.

Microsoft Exchange Online
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,804 questions
Microsoft Exchange
Microsoft Exchange
Microsoft messaging and collaboration software.
688 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.