Powershell script to bulk import external contacts into M365

Posted by jbruff@reddit | sysadmin | View on Reddit | 20 comments

Im trying to import 500 external email contacts into M365. I havent had to use powershell in 10 years. Im not sure where im getting things wrong on this. Ive created the CSV in excel, the headers at the top of the dock are Name, Phone and ExternalEmailAddress in that order. From what im seeing this is needlessly complicated or im just hella outdated lol. When i remote in i get this error when i try to import the list.

Import-Csv: Cannot bind parameter 'Delimiter'. Cannot convert value "Documents/com\\~apple\\~CloudDocs/WIP/ParentContact.csv" to type "System.Char". Error: "String must be exactly one character long."

What am i doing wrong?