Get-ADUser -Filter * -searchbase “OU LOCATION” -Property DisplayName | %{
$_ | Rename-ADObject -NewName $_.DisplayName
}
If the CN object in Active Directory does not match the DisplayName then use the above script
Get-ADUser -Filter * -searchbase “OU LOCATION” -Property DisplayName | %{
$_ | Rename-ADObject -NewName $_.DisplayName
}
If the CN object in Active Directory does not match the DisplayName then use the above script