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
Solved

List and remove a item in Calendar

Posted on 2016-10-16
4
45 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
  • 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Lotus Notes – formerly IBM Notes – is an email client application, while IBM Domino (earlier Lotus Domino) is an email server. The client possesses a set of features that are even more advanced as compared to that of Outlook. Likewise, IBM Domino is…
This script can help you clean up your user profile database by comparing profiles to Active Directory users in a particular OU, and removing the profiles that don't match.
In this video we show how to create a User Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Mailb…
In this video we show how to create an Address List in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Organization >> Ad…

856 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