Page 1 of 1

Exporting Exchange server mailbox information as .CSV so I can import.CSV as Mail-Contact?

Posted: Thu Feb 28, 2019 3:44 am
by ITEngineer
People,

I need to export the sister company Exchange Server mailbox attributes as .CSV, So I can run it on the new Exchange Server OnPremise using the script below:

Code: Select all

Import-Csv "C:\contacts.csv" | foreach {Set-Contact $_.externalemailaddress -Name $_.name -FirstName $_.firstname -LastName $_.lastname -StreetAddress $_.streetaddress -StateOrProvince $_.province -City $_.city -PostalCode $_.postalcode -MobilePhone $_.mobile -Phone $_.workphone -HomePhone $_.homephone -Company $_.company -Title $_.title -Department $_.department -CountryOrRegion $_.countryorregion -Fax $_.fax -Notes $_.notes -Office $_.office}
Any help would be greatly appreciated.

Thanks

Re: Exporting Exchange server mailbox information as .CSV so I can import.CSV as Mail-Contact?

Posted: Thu Feb 28, 2019 4:02 am
by jvierra
Just export the same attributes from the source.