I want to rename SPPrincipals that are ADGroups.
I've tried with
$SPFarm = Get-SPFarm
$SPFarm#$SPFarm.MigrateGroup("loginName", "newLoginName")
#$SPFarm$SPFarm.MigrateUserAccount("loginName", "newLoginName", $false)
but no success. ("The user does not exist or is not unique.")
I know that is a ReadOnly field, however there is any way to do it via PS?