We use cookies to improve your experience.
By your continued use of this site you accept such use.
For more details please see our privacy policy and cookies policy.

Script repository

Update mailbox time zone

September 18, 2019 Views: 1522

The script updates the time zone of a mailbox in on-premise Exchange.

Parameters:

  • $timeZone- Specifies the time zone that will be set for the mailbox.
  • $exchangeServer - specifies the fully qualified domain name (FQDN) of your Exchange Server
Edit Remove
PowerShell
$timeZone = "Pacific Standard Time" # TODO: modify me
$exchangeServer = "ExchangeServer.domain.com" # TODO: modify me

try
{
    # Create a remote PowerShell session to the Exchange Server
    $session = New-PSSession -configurationname Microsoft.Exchange -connectionURI http://$exchangeServer/PowerShell
    Import-PSSession $session -DisableNameChecking -AllowClobber

    
    Set-MailboxRegionalConfiguration -Identity "%objectGUID%" -TimeZone $timeZone
}
finally
{
    # Close the remote session and release resources
    Remove-PSSession $session
}

Comments 5
avatar
Josh Dec 08, 2025
Is this still the current best practice to do this in a PS script? Or is there a better way to modify this/these properties for new user provisioning?
avatar
Support Dec 08, 2025
Hello Josh,

Using the script is currently the only option to update the time zone of a mailbox via Adaxes.
avatar
Josh Dec 08, 2025
Thank you, I just wanted to verify that this was still applicable even though it's from 2019.
avatar
Jon Dec 12, 2025
Does this work for Exchange Online/M365, or just Exchange On-prem?
avatar
Support Dec 12, 2025
Hello Jon,

This script only works in on-premises Exchange.
Leave a comment
Loading...

Got questions?

Support Questions & Answers