PowerShell Commands

Changing Timezones using Microsoft Powershell

When an administrator of a company creates a resource in Office365 during the initial setup they are not asked to specify a Timezone for that resource, as the resource has no specified Timezone Office365 uses (UTC+00:00) Monrovia, Reykjavik which can be verified by logging into the resource using a web browser selecting Settings – Timezone.

Should you run the below command and see no Timezone specified, this also means the resource is using (UTC+00:00) Monrovia, Reykjavik

In this scenario, I am checking the Timezone for Hotdesk 05

Get-MailboxRegionalConfiguration -Identity [email protected]
image png Jun 16 2021 08 41 30 46 AM

If you see the above you will need to change the Timezone for that resource however if you have many resources with no Timezone doing this within the Office365 environment can be very time-consuming so using Powershell will save a lot of time.

Changing the Timezone using Powershell

TIP: You will need Global Administrator privileges to perform the below

1, Open Powershell and login to Exchange Online using the below command & when prompted login with your Global Administrator credentials

image png Jun 16 2021 08 50 42 95 AM

2, Run the below command on each Room Resource you would like to set the Timezone for, in this scenario, we will be using GMT Standard Time.

Set-MailboxRegionalConfiguration -Identity [email protected] -TimeZone "GMT Standard Time"

3, You can verify the set command was successful by running the below ensuring you change the email alias in accordance with your environment & if successful you will see a Timezone configured, in our instance, this is GMT Standard Time.

Get-MailboxRegionalConfiguration -Identity [email protected]
image png Jun 16 2021 09 07 31 85 AM

You will need to do this for each mailbox you would like to set the Timezone for within your Organisation.

TIP: If you are wanting a list of room resources using Powershell you can use the command:

Get-Mailbox -Filter ‘(RecipientTypeDetails -eq “RoomMailBox”)’ | Select Name,Alias

Add your comment

Your email address will not be published.

1 Comment