Question : How do I sort exchange 2007 global address book by surname instead of first name?

How do I sort exchange 2007 global address book by surname instead of first name?

Answer : How do I sort exchange 2007 global address book by surname instead of first name?

Hi
Try this

For single user:

get-user    "user1"  | ?{ $_.Lastname -neq $null } | %{ $dispName=$_.LastName + ", " + $_.FirstName ;  set-mailbox $_.SamAccountName -Displayname $dispName }

For All users:

get-user   | ?{ $_.Lastname -neq $null } | %{ $dispName=$_.LastName + ", " + $_.FirstName ;  set-mailbox $_.SamAccountName -Displayname $dispName }
Random Solutions  
 
programming4us programming4us