Home » General » Get Duplicate users in a forest

Get Duplicate users in a forest

(Get-aduser -filter * -server Domainname:3268 | Group-Object -Property UserprincipalName | ?{$PSItem.Count -gt 1 -and $PSItem.Name -ne “”}).group |export-csv c:\temp\duplic.csv -NoTypeInformation

Leave a Reply

Your email address will not be published. Required fields are marked *

Name *
Email *
Website