User Profile
Denis_Christov
Copper Contributor
Joined Jun 16, 2021
User Widgets
Recent Discussions
Re: Deleting contacts from a 365 shared mailbox
Kais_mbarki Hi Kais, I use similar script: Import-ContactList -Identity someone@comapany.com -CSV -CSVData ([System.IO.File]::ReadAllBytes("c:\temp\sample.csv")) That one works correctly. For deletion I tried Remove-MailContact -Identity mailto:someone@company.com But it says that "object couldn't be found" for that identity I'm running it all under global admin account.3.3KViews0likes5CommentsDeleting contacts from a 365 shared mailbox
Hello all, I have been struggling for several hours to figure out how to delete all contacts from a shared mailbox in Microsoft 365 using Powershell. To no avail. I can import contacts from a CSV successfully, but any further import just adds the contacts anew. So I need to delete the old ones before importing. And of course I need that automated. I have everything figured out and working except the deletion part. Remove-MailContact -Identity heregoestheuser ends with an error of “object couldn’t be found” If anybody has any idea how to do it, I would be eternally grateful.3.7KViews1like7Comments
Recent Blog Articles
No content to show