Wer den Anzeigenamen für Benutzer ändern oder hinzufügen möchte, kann das über die Exchange Management Shell einfach für einzelne oder für alle Benutzer erledigen. Das Attribut des Postfachs das den Anzeigenamen enthält heißt „DisplayName“.
This command can be used to display the current display names:
Get-Mailbox –Database „Name der Postfachdatenbank“ |select Name,displayname
If you now want to change the display name, you can do so with this command:
set-mailbox „Alias oder E-mail Adresse“ –DisplayName „Neuer Anzeigename“
So you can simply build a small script that forms the display name from the user's name and a selectable addition, which is practical if, for example, the company name is to be added:
foreach ($database in „Name der MailboxDatenbank“)
{
$AllUsers += Get-Mailbox -Database $database -ResultSize Unlimited|select Name,identity
}
foreach ($user in $AllUsers)
{
$newdisplayname=$user.Name + “ | Firmenname“
set-mailbox -identity $user.identity -DisplayName $newdisplayname
}
This script takes all users from the mailbox database specified in line and creates the new display name from the first and last name of the user and the company name specified in line 7.