Exporting Exchange server mailbox information as .CSV so I can import.CSV as Mail-Contact?
Posted: Thu Feb 28, 2019 3:44 am
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:
Any help would be greatly appreciated.
Thanks
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}
Thanks