Using PowerShell to set a Mailbox Timezone

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.

That’s it!

Jonny

About these ads

2 Responses to Using PowerShell to set a Mailbox Timezone

  1. Vince says:

    Any idea what this will do for students that have not yet logged in? I had been thinking I would have liked the OWA first-run screen to default to Eastern Time. Do you think doing before they log in will make it default to Eastern Time? If not, is there any other way?

  2. US LiveAtedu says:

    @VinceI just tried this… PowerShell does allow you to set a timezone for a user that has not logged on yet without complaint, but the initial screen that a user sees uses a system wide default setting (Monrovia, Reykjavik) which if left unchanged, will overwrite anything you might set. Upshot is that the commands in the post can really only be used after a user has logged on the first time.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: