RSS

Exchange 2007 PowerShell DistributionGroup commands

  • Thursday, July 9th 2009

Here aresome PowerShell cmdlets for working with distribution group in exchange 2007 Get-DistributionGroup – Retrieves properties of a distribution group New-DistributionGroup – Creates a new distribution group Remove-DistributionGroup – Deletes a distribution group Set-DistributionGroup –  Set Properties on a distribution group

How To Create New Exchange 2007 Contacts

  • Thursday, July 9th 2009

You can create (aka import) email contacts in Exchange 2007 from the command line using PowerShell (the Exchange Console). The PS script will read the contact information from a CSV file. Here is the powershell (Exchange Console) script/command: Import-Csv contacts.csv | ForEach { New-MailContact -Name $_.displayName -ExternalEmailAddress $_.Emailaddress -OrganizationalUnit “domain.com/company/email/contacts” } NOTE: be sure to adjust the -OrganizationalUnit parameter in the command above. CSV file: (contacts.csv) displayName,Emailaddress Mike Wood,michael@example.com John Q. Customer,johnc@example.org etc,etc@example.net