Using PowerShell to set a Mailbox Timezone
May 21, 2009 2 Comments
A question I get asked quite often by Outlook Live administrators is if it is possible to programmatically set the timezone on a mailbox. The scenario is that a student has not set it right when they first logged in, and they may lack the knowledge to set it to what it should be. This can lead to help desk calls if students get confused when their calendar (for example) does not align with what they expect the time to be.
A timezone for a mailbox can be viewed and set through PowerShell. In the example below, JennyA is the user, and Admin is the Exchange Organization Administrator.
First of all, as an admin, you need to grant yourself full access rights to the mailbox:
add-MailboxPermission -Identity jennya -User admin -AccessRights fullaccess
Then, you can check to see what the TimeZone is currently set to:
get-MailboxRegionalConfiguration -identity jennya
You will see a result like the following:
Then, you can change the TimeZone to something else…let’s say Pacific Standard Time
set-MailboxRegionalConfiguration -identity jennya -TimeZone "Pacific Standard Time"
Finally, remove the full access privileges from the admin account:
Remove-MailboxPermission -Identity jennya -User admin -AccessRights fullaccess
If you need to do this en masse, you could of course write a PowerShell script to do this that works in conjunction with a CSV file containing the mailboxes you want to adjust. The timezones are all referenced with their full name. If you don’t know what to use, manually set a time zone in OWA, and then use PowerShell to see what it is called.