Hi @Safs-3080,
You can try running the command below and then sort the exported result in Excel to see the duplicates if they exist:
Get-PublicFolder -Recurse | Select name | Export-Csv c:\temp\PF.csv -NoTypeInformation
In case the above is not what you are looking for, could you share some more details like the Exchange server version in your environment, and what task you are doing that requires to know the duplicated public folder objects so that we can understand better about your situaiton?
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.