pramod1
asked on
outlook
We need all meetings removed from all Outlook users were created by user who is no longer with the company.
Do you use Exchange?
ASKER
yes exchange 2007
With MSX 2007 you would need to connect to each Outlook session to do so. No, you can't do that with reasonable effort, AFAIK. But I will add more topics to reach out to more Experts to either confirm or disprove.
It can be done via using PS command. In 2007 you can use export command to delete the content. Read this
https://blogs.technet.microsoft.com/exchange/2010/10/27/removing-specific-messages-from-your-exchange-server/
In 2010, you can use search mailbox PS command let. Which also do same job.
Note: Don't give vague search query, when doing bulk deletion. Use date, from and subject, pipe it to target mailbox. So you can recover them later. In case you deleted wrong email. Also, remember there is a risk involved in bulk deletion. If you pipe wrong command.
https://blogs.technet.microsoft.com/exchange/2010/10/27/removing-specific-messages-from-your-exchange-server/
In 2010, you can use search mailbox PS command let. Which also do same job.
Note: Don't give vague search query, when doing bulk deletion. Use date, from and subject, pipe it to target mailbox. So you can recover them later. In case you deleted wrong email. Also, remember there is a risk involved in bulk deletion. If you pipe wrong command.
ASKER
so which command should I use if for ex. I want to remove meetings of let us say user abc@domain.com from all outlook users
With Export-Mailbox you have no way to restrict to meetings only. You would have to provide subjects identifying the items exactly.
Hi Pramod1,
I might be oversimplifying, but why not log in as ex-user, view calendar in List view, and delete all meetings. It will send cancellations to all invitees.
kfalandays
I might be oversimplifying, but why not log in as ex-user, view calendar in List view, and delete all meetings. It will send cancellations to all invitees.
kfalandays
ASKER
cant I use below command
Get-Mailbox | Export-Mailbox -SenderKeywords “user@domain.com” -IncludeFolders “\Calendar” –DeleteContent
Get-Mailbox | Export-Mailbox -SenderKeywords “user@domain.com” -IncludeFolders “\Calendar” –DeleteContent
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
it prompts in between dcforest\admin seems to be corrupted, i have stopped running,
Test on some other user. I gave you the idea, how to do it. Just do testing.
ASKER
Get-Mailbox | Export-Mailbox -TargetMailbox TesttMailbox -TargetFolder Test -SenderKeywords “user@domain.com” -IncludeFolders “\Calendar” –DeleteContent - get-content c:\temp\list.txt
it says list.txt doesn't exist
it says list.txt doesn't exist
Please create a text file with name list.txt. Path you can decide. In this file, you give user samaccount name. Then run the command.
ASKER
it runs but then gives the error : database is mandatory for user mailbox, dc forest\admin is in inconsistent state