- import-csv "C:\filename.csv" | % {New-DistributionGroup -Name $_.Groupname -DisplayName $_.Displayname -OrganizationalUnit "domain.local/groups/distribution" -SamAccountName $_.SamName -Type Distribution}
- Make sure your spreadsheet columns match the names above so that:
- Groupname = The name you want the distribution group to have in Exchange (NOT the display name!)
- SamName = Specify the same name as the Group Name. It's for AD.
- Displayname = The display name (the one that contains #)
- import-csv "C:\filename.csv" | % {Set-DistributionGroup -identity $_.Groupname -EmailAddressPolicyEnabled $false -PrimarySmtpAddress $_.email -RequireSenderAuthenticationEnabled $false}
- Make sure your spreadsheet columns match the names above so that:
- Groupname = The name of the group you want to change
- Email = The email address you want to specify (if different than default)
- If no groups need their email address specified, then run this command instead:
- import-csv "C:\filename.csv" | % {Set-DistributionGroup -identity $_.Groupname -RequireSenderAuthenticationEnabled $false}
Friday, 14 October 2011
Exchange 2007 - Bulk Create Groups
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment