Fun with Powershell

As the name suggest I want to introduce how you can enjoy powershell when you are administering Exchange and Lync :)

New-MailboxRestoreRequest bulk mailbox merge : how to do that

New-MailboxRestoreRequest bulk mailbox merge : how to do that

  • Comments 4
  • Likes

I was asked by some one if we can do new-mailboxrestorerequest for all the
users. Well on the first thought I said it is possible.

It took some time but I was able to get it working.

 

SCRIPT :

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

foreach($mailbox in Get-MailboxStatistics -Database RDB)
{New-MailboxRestoreRequest -SourceDatabase RDB -SourceStoreMailbox
$mailbox.DisplayName -TargetMailbox $mailbox.DisplayName}

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

 

NOTE: In the above example RDB is the name of the Recovery Database

 

PLEASE CHECK FOR THE SPACES when you copy paste the
script.

 

 

 

Comments
  • Thanks..this was of great help!!

  • Welcome Naveen

  • Wonderful! It helped me on my case. Good script BRO!

  • welcome Saif

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment