Skip to main content

Restore Out of Office Backup with Powershell

·201 words·1 min
system-administration tech exchange exchange-2010 powershell sysadmin technology
James Pettigrove
Author
James Pettigrove
Cloud Engineer with a focus on Microsoft Azure

In my previous post, I discussed the need to set a special external facing Out of Office message for all shared mailboxes in the organisation. Prior to doing so, I ensured we backed up the current message, along with it’s configuration.

Hopefully you followed along and did the same as now is the time to restore our old message and configuration.

Once again, we will look to the power of Powershell (heh) to help us out:

The restore cmdlet takes much of it’s DNA from the backup cmdlet. Therefore the same rules apply.

Change the Exchange module to one that is applicable in your environment:

#Load Exchange Powershell Module
if (! (Get-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010 -ErrorAction:SilentlyContinue) )
{
    Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010 -ErrorAction:Stop
}

And point the cmdlet to where your shared mailboxes are:

#Get all Shared Mailboxes and loop through each mailbox
$Mbx = Get-Mailbox -OrganizationalUnit "OU=Shared Mailboxes,OU=Users,DC=contoso,DC=co"

Once the above two elements are matched to your environment, run the cmdlet. The only parameter you will need to provide is the path to where the backups are located.

Simples

You’ve now saved your customers a enormous amount of time not worrying about settings things back to how they were. Productivity is on the rise!

Related

Bulk Backup and Set Out of Office Messages
·430 words·3 mins
system-administration tech exchange exchange-2010 powershell sysadmin technology
We live in very interesting times at the moment.
Give a computer account Send-As permissions in Exchange Powershell
·189 words·1 min
system-administration tech exchange exchange-2007 exchange-2010 powershell sysadmin technology
Take for instance the File Server Resource Manager that is a feature of the File Server role.
Resolve failed Mailbox Move Requests
·465 words·3 mins
system-administration tech exchange exchange-2010 powershell sysadmin technology
So chances are, after reading my previous post on how to move Mailboxes via Organizational Unit you have migrated a couple hundred mailboxes.