Quantcast
Channel: Exchange Server 2013 - General Discussion forum
Viewing all articles
Browse latest Browse all 4521

Deleting or purging a specific contacts folder for all existing users

$
0
0

Hi,

I need to find a way to delete or empty the "Lync Contacts" folder (Subfolder in Contacts) for all existing Exchange users. I've tried narrowing it down by using kind:contacts parameter for the Search-Mailbox command, but that lists all contacts and I can't narrow it down further to that particular folder.

All contacts in the "Lync Contacts" folder have entries like "8/19/2013 This contact was added from Microsoft Lync 2013 (15.0.4517.1004) " in their "Notes" field. I tried to use this to my advantage and phrased my search like this:

Search-Mailbox -Identity "User Name" -SearchQuery all:"from Microsoft Lync 2013"

However, this also returns a few random emails, which don't have that specific string of text, but do mention Lync in their body.

I haven't yet found a way to combine the kind:contacts and the all:"from Microsoft Lync 2013" into one search. Trying to use AND operator or pipe didn't yield any success.

If you know how to combine these two searches or how to delete that folder using any other methods, please let me know.



Viewing all articles
Browse latest Browse all 4521

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>