I have a need to be able to export contacts for specific users using powershell. I've tried the scripts here but the don't seem to work:
https://community.spiceworks.com/topic/2155223-powershell-office-365-export-user-s-contacts-to-csv
https://gallery.technet.microsoft.com/office/How-to-export-a-mailboxs-2dd7247a
The one from spiceworks doesnt give me any errors, but the csv it creates has no data.
The one from the technet gallery gives me an autodiscovery error and I'm not sure how to fix that.
Does anyone else have a tried and true way of exporting contacts using powershell and exchange online?
Thank you.