Quantcast
Channel: Exchange Server 2010 forum
Viewing all articles
Browse latest Browse all 19436

Room Mailbox Cleanup : By deleting the meetings made by terminated user : E2010sp2

$
0
0

Hello Team

Iam seeking a solution from a long time

We have 100+ Room mailbox and we need to do do the cleanup activity for all the conf.Rooms by deleting the meetings made by terminated users who doen't have mailbox and AD account

i have tried the power shell script, it is fetching the all the room mailbox but meetings are not disppear / vanished from the room mailbox

I have googled and found the below link

http://46424.com/question/348992#.URttN6Vazmp

Write-Progress -Activity "Preparing" -Status "Retrieving mailbox list" -PercentComplete 0

$rooms=get-mailbox -recipienttypedetails roommailbox -resultsize unlimited -warningaction:silentlycontinue| where {$_.name -notlike "test"}

$count=$rooms.count

foreach($room in $rooms)

{

    $i=$i+1

    $percentage=$i/$count*100


    Write-Progress -Activity "Collecting mailbox details" -Status "Processing mailbox $i of $Count - $room" -PercentComplete $percentage

$room | search-mailbox -searchquery "kind:calendar from:test" -targetmailboxadministrator@labbites.co.in -targetfolder "Deleting Meeting" -deletecontent -force
}

Am Not sure what is wrong with the script

is there anything from microsoft for the solution to delete the meetings from all the conf.Rooms which was made by terminated users

Looking for positive comments

 

 

 


ramakrishnan


Viewing all articles
Browse latest Browse all 19436

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>