Conference Room Appointment Deletion RRS feed

  • Question

  • Good day all!  

    I have a requirement to be able to purge all appointments created by X user from today's date going forward on all of our conference rooms.  I've found a script located here:


    This script works great for individual mailboxes, however, instead of performing a search on just one mailbox, I would like this script to crawl all mailboxes in our environment with the RecipientTypeDetails -eq "RoomMailbox"

    So it would be something like get-mailbox -ResultSize unlimited | where {$_.Recipienttypedetails -eq "RoomMailbox", and then run the above script with the startdate specified.

    I'm sure there is a way to do this just within the original script, but I'm not a scripting guru.

    Any help is greatly appreciated!!!!


    Tuesday, July 21, 2015 2:35 PM


  • The script has a -Mailbox parameter, which you can populate with the values from the Get-Mailbox cmdlet. For example:

    Search-Appointments.ps1 -Mailbox room@domain.com

    To run this against all mailboxes, try something like this:

    Get-Mailbox -ResultSize Unlimited -RecipientTypeDetails RoomMailbox | % { Search-Appointments.ps1 -Mailbox $_.Mailbox }

    Make sure to populate the user, start/end date and other parameters as needed. And to test it first :)

    Tuesday, July 21, 2015 7:51 PM