Thursday, 19 February 2009

Mass changes to Display Name of Distribution Groups

If wishing to change a mass list of Display Names for a Groups, try:

$list = import-csv "C:\filename.csv"
$list foreach {$_.alias set-distributiongroup -displayname $_.displayname}

In the above example, a csv file is used for input, containing the list of aliases and desired display names. Essentially, can be amended to suit desired attribute, e.g. name, office, etc.

Example cvs file:



Disclaimer
Content of this website and blog are not necessarily the views expressed by the authors and those contributing content. The accuracy, completeness, veracity, honesty, exactitude, factuality, integrity, correctness and politeness of comments are not guaranteed. The
reader or user of this blog has complete responsibility of their own use of any of the suggested content from this website/blog. It is recommended that readers perform extensive testing and validation of all scripts, commands and instructions before considering use in any environment.

Followers