SOLVED

O365 Powershell | Changing usernames and display names in bulk

Brass Contributor

Hi,

Does anyone have a script to bulk change usernames & display names in a tenant, eventually using a csv or a filter based on the existing username which all start by "general-NNNN@..."?

Thanks/Brgds joao

2 Replies
best response confirmed by Joao Casqueiro (Brass Contributor)
Solution

@Joao Casqueiro 

 

Hi Joao,

 

don't specifically have one handy for exactly this task - you could use my script Invoke-CreateCloudAccts.ps1 along with the excel file and adapt the logic to look for the account and then use Set-MsolUser rather than new... script and excel template are in my github link below

Azure-M365/M365/AzureAD/User-Management at main · SteveMacNZ/Azure-M365 · GitHub

1 best response

Accepted Solutions
best response confirmed by Joao Casqueiro (Brass Contributor)
Solution

@Joao Casqueiro 

 

Hi Joao,

 

don't specifically have one handy for exactly this task - you could use my script Invoke-CreateCloudAccts.ps1 along with the excel file and adapt the logic to look for the account and then use Set-MsolUser rather than new... script and excel template are in my github link below

Azure-M365/M365/AzureAD/User-Management at main · SteveMacNZ/Azure-M365 · GitHub

View solution in original post