Asked by:
Change O365 users Display Name in Bulk

Question
-
Hello, i have about 1000 users to which display names have to be renamed. I am looking for a way to scrip this using a CSV file. I am sure PowerShell has a solution to this. I have done some research and have not been successful in accomplishing my task. Mind you, my PowerShell skills are below average. Please help!!
Many Thanks in advance.
- Edited by Seawhisper Thursday, May 10, 2018 3:07 PM
Wednesday, February 21, 2018 5:00 PM
All replies
-
You certainly didn't do much research.
Import-Csv file.csv | ForEach-Object{ Set-MsolUser -UserPrincipalName $_.UserPrincipalName -DisplayName $_.DisplayName }
Look up using PowerShell with O365.
Study the subsystems and the CmdLets. Probably the first thing for you to do is to take a course, tutorial or book on PowerShell.
\_(ツ)_/
- Proposed as answer by Richard MuellerMVP Wednesday, February 21, 2018 7:35 PM
Wednesday, February 21, 2018 5:27 PM -
What is in your csv. Do this:
Import-Csv <your file> | select SamAccountName, displayname
\_(ツ)_/
Wednesday, February 21, 2018 9:01 PM -
I recommend fixing your CSV.
Please review ALL of the following before posting further:
This Forum is for Scripting Question Rather than script requests
From a Bill Stewart summary of useful forum links:
- Posting guidelines
- Handy tips for posting to this forum
- How to ask questions in a technical forum
- Rubber duck problem solving
- How to write a bad forum post
- Help Vampires: A Spotter's Guide
\_(ツ)_/
Wednesday, February 21, 2018 9:14 PM -
Somewhat a bit harsh? The woman was looking for help.
- Edited by frenchdan Tuesday, May 1, 2018 1:35 PM
Tuesday, May 1, 2018 1:35 PM