Solved

List and remove a item in Calendar

Posted on 2016-10-16
4
54 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 6

Accepted Solution

by:
Niten Kumar earned 500 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 6

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Previously, on our Nano Server Deployment series, we've created a new nano server image and deployed it on a physical server in part 2. Now we will go through configuration.
This article will help to fix the below error for MS Exchange server 2010 I. Out Of office not working II. Certificate error "name on the security certificate is invalid or does not match the name of the site" III. Make Internal URLs and External…
This video discusses moving either the default database or any database to a new volume.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Suggested Courses

628 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