
To be able to execute the PowerShell script, we need to navigate to the path in which the PowerShell script located. “Navigate” the PowerShell script location PowerShell script We will run the import-contacts.ps1 from the PowerShell console, by using the following steps:ġ.
In case that this is the first time that you run PowerShell on your desktop, you will need to run the PowerShell console as administrator and run the PowerShell command: Set-ExecutionPolicy Unrestricted -force In our scenario, we have saved the import-contacts.ps1 to a folder named script in C: drive. Running the import-contacts.ps1 PowerShell scriptĪfter you have downloaded the PowerShell and extract the ZIP file, save the PowerShell script in a specific folder.
Export information about external contacts – this option will help us to export data about existing Exchange Online external contacts to three types of file formats: TXT, CSV, and HTML. Import Distribution Group members from a CSV File – this option that will help us to populate the existing distribution group with the external contacts who was imported from the CSV file. Delete External contacts from a CSV file – in case that we want to delete external contact who was imported to Exchange Online from the CSV file, we can use this option. Import External contacts from a CSV file – this option will help us to run the two phases of the PowerShell command – phase 1 – import the information from a CSV file and create the required external contacts in Exchange Online and phase two – import the properties for each contact. Login in using your Office 365 Administrator credentials – this option will help us to create a remote PowerShell session that will connect us to Exchange Online. To simplify the procedure of Bulk Import contacts to Exchange Online, I have prepared a PowerShell script that includes the following options: Using the import contacts PowerShell script
Bulk Import Contacts to Exchange Online (Office 365) Using PowerShell script | Part 2#2. Bulk Import Contacts to Exchange Online (Office 365) Using PowerShell | Part 1#2. How to manipulate the information in the CSV fileīulk Import Contacts to Exchange Online (Office 365) Using PowerShell script | Article Series. Running the import-contacts.ps1 PowerShell script.
Using the import contacts PowerShell script.Bulk Import Contacts to Exchange Online (Office 365) Using PowerShell script | Article Series.