RSS

让显示名更中国化,Exchange邮箱账户显示名修改

03 Oct

国外大部分地区的人名模式都是名+姓,而中国人则是姓+名。 这个很容易理解吧,在国内我叫做杨迅,在海外我就不得不改成Xun Young啦。Windows和Exchange的Diskplayname默认方式都是名+姓。下面2个脚本帮你改来又改去,更显中国化。

   1: Displayname改成 姓+名
   2: Get-Mailbox “User Name” | Get-User | ?{ $_.Lastname -ne $null } | %{ $dispName=$_.LastName + ", " + $_.FirstName ; set-mailbox $_.SamAccountName -Displayname $dispName }
   3:  
   4: Displayname改成 名+姓
   5: Get-Mailbox “User Name” | Get-User | ?{ $_.Lastname -ne $null } | %{ $dispName=$_.FirstName + " " + $_.LastName ; set-mailbox $_.SamAccountName -Displayname $dispName }
Advertisements
 
Leave a comment

Posted by on October 3, 2009 in Exchange Server

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: