![]() ![]() New-MailboxImportRequest -Mailbox usetest -FilePath \\HQ-FS01\PST\usetest.pst Use the following command to import the content of a PST file from a shared folder into the user’s mailbox usertest. The user performing the import operation must have the NTFS read permission on the network folder with the PST mail archive file.The PST file must be located on the shared network folder and you have to know the full UNC path to it (don’t forget that the local file on a certain computer can be accessed via its network path like \\PCName111\C$\PST\tstmail.pst).The target Exchange mailbox must exist.To import a PST file to the Exchange mailbox, you need the following besides the RBAC permissions: New-MailboxImportRequest: Importing PST Fie into Exchange Mailbox While processing the script, each contact is confirmed when added successfully.įinally, we confirm the contacts have been added successfully by checking the O365 admin and Exchange admin centers.After granting RBAC permissions, restart the EAC or Management Shell console. Once connected to the O365 tenant, we will run the following script (Create-MyO365Contacts.ps1) to add the list of contacts from the CSV file… Import-Csv "C:\Scripts\MyO365Contacts.csv" | foreach-object Now that we have our CSV file set, we need to connect to Office 365 with PowerShell. The command we will use for this task is New-MailContact. Since New-MailContact only requires the Name and ExternalEmailAddress parameters, we will create our CSV file similar to the following (MyO365Contacts.csv) which I saved in the C:\Scripts directory. We implemented AAD Connect to sync Active Directory (AD) user objects for the user mailboxes that where being migrated. However, we manually created shared and resource mailboxes, groups, and contacts in O365 as those were not going to be created in AD for synchronization.įor this article, we will add contacts to Office 365 in bulk with PowerShell using a CSV file. I had a project recently where we were migrating from hosted Exchange to Office 365. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |