Share via

PowerShell Command to change display name.

Anonymous
2016-12-15T11:55:56+00:00

i have to re-arrange display name of my organization around 150 Email id can i have powershell code to change display name from .csv file at once

Microsoft 365 and Office | Subscription, account, billing | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2016-12-15T17:29:38+00:00

Hi Tabrezz,

If you want to change the "display name" instead of the User Principal Name, you can try the follow steps:

  1. Install Office 365 PowerShell.
  2. Enter "Connect-MsolService" > Sign in with Office 365 global admin center.
  3. Create an Excel file with the following format and save in: C:\temp\Book1.csv

  1. Enter in PowerShell: import-csv c:\temp\Book1.csv | foreach {Set-MsolUser -UserPrincipalName $_.UserPrincipalName -DisplayName $_.DisplayName}

  1. Check in the user display name in admin center.

You can give it a try and share the outcome with us.

Regards,

Jared

Was this answer helpful?

10 people found this answer helpful.
0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2016-12-18T11:44:19+00:00

    Hi Tabrezz,

    Any update would be appreciated. If you need further assistance, please let us know.

    Regards,

    Jared

    Was this answer helpful?

    0 comments No comments