I was recently asked how the samAccountName – also referred to as the login id – could be changed.
First lets look at an account:
PS C:Scripts> Get-ADUser -Identity 'FredFox'
DistinguishedName : CN=FOX Fred,OU=UserAccounts,DC=Manticore,DC=org… Read the full text.