export dirsync errors detail to a CSV file.

nav2567
nav2567 used Ask the Experts™
on
Hi,

I am in the O365 portal>settings>dirsync errors.  I am seeing list of proxy addresses cause sync errors because of conflict.  

Is there a way I can export the detail of the conflicts to a CSV file?

Thanks.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2015
Distinguished Expert 2018
Commented:
Try something like this:

Get-MsolUser -HasErrorsOnly | select DisplayName,UserPrincipalName,@{Name="Error";Expression={($_.errors[0].ErrorDetail.objecterrors.errorrecord.ErrorDescription)}} | Export-CSV -nti errors.csv

Open in new window

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial