Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

List and remove a item in Calendar

Posted on 2016-10-16
4
Medium Priority
?
61 Views
Last Modified: 2016-10-17
How to use powershell to list and remove a item in Exchange 2010 calendar ?

Thx
0
Comment
Question by:AXISHK
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 7

Accepted Solution

by:
Niten Kumar earned 2000 total points
ID: 41846266
To search in single mailbox

search-mailbox -identity userA -searchquery "Kind:meetings and Subject:Subject of meeting and from:User@domain.com" -targetmailbox Adminmailbox -TargetFolder "SearchData" -logonly -loglevel full

To delete items from Single mailbox

search-mailbox -identity userA -searchquery "Kind:meetings and Subject:Subject of meeting and from:User@domain.com" -targetmailbox Adminmailbox -TargetFolder "SearchData" -loglevel full -DeleteContent

To search items for all mailboxes

Get-Mailbox -ResultSize Unlimited | search-mailbox -searchquery "Kind:meetings and Subject:Subject of meeting and from:User@domain.com" -targetmailbox Adminmailbox -TargetFolder "SearchData" -logonly -loglevel full

To delete items from all mailboxes

Get-Mailbox -ResultSize Unlimited | search-mailbox -searchquery "Kind:meetings and Subject:Subject of meeting and from:User@domain.com" -targetmailbox Adminmailbox -TargetFolder "SearchData" -loglevel full –DeleteContent
0
 
LVL 7

Expert Comment

by:Niten Kumar
ID: 41846276
0
 

Author Comment

by:AXISHK
ID: 41847568
Run the below powershell but I can't see any item in the target folder of the administrator mailbox. Any idea ?



[PS] C:\Windows\system32>search-mailbox -identity john -searchquery "Kind:meetings" -targetmailbox administrator -TargetFolder "Target" -loglevel full


RunspaceId       : a6641cd4-7bea-4774-976a-2a166e867ac4
Identity         : energy.com/Hong Kong/John Leung
DisplayName      : John Leung
TargetMailbox    : energy.com/Service Account/Administrator
TargetPSTFile    :
Success          : True
TargetFolder     : \Target\John-10/18/2016 9:15:01 AM
ResultItemsCount : 27
ResultItemsSize  : 210.9 KB (215,983 bytes)
0
 

Author Closing Comment

by:AXISHK
ID: 41847591
Find it, Thx
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
There are times when we need to generate a report on the inbox rules, where users have set up forwarding externally in their mailbox. In this article, I will be sharing a script I wrote to generate the report in CSV format.
how to add IIS SMTP to handle application/Scanner relays into office 365.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Suggested Courses

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question