Jump to content

Recommended Posts

Posted

Hi guys,

 

Another live@edu query for you:

 

How do you set the regional and time options for all users? I've tried following James Marshall's detailed instructions from his live@edu blog, but I must be missing something.

 

I've attached a screenshot of the error.

 

Many thanks for your help.

powershell.jpg

Posted
Just to follow this up, the issue is due to the absence of the following parameters “DateFormat” and “TimeFormat” in the PowerShell command.
Posted
Just to follow this up, the issue is due to the absence of the following parameters “DateFormat” and “TimeFormat” in the PowerShell command.

 

That's not technically true... :)

 

Get-Mailbox –Resultsize unlimited | Set-MailboxRegionalConfiguration –Language en-gb –TimeZone "GMT Standard Time"

 

This little bit of PS works just fine - in your original post there is an extra space, so it's reading "Get-Mailbox - Resultsize..." which is wrong. That's a typo on the blog as well, but a quick bit of debugging would've picked that up! ;)

 

I'll correct the typo in the post.

  • Thanks 1
Posted
That's not technically true... :)

 

Get-Mailbox –Resultsize unlimited | Set-MailboxRegionalConfiguration –Language en-gb –TimeZone "GMT Standard Time"

 

This little bit of PS works just fine - in your original post there is an extra space, so it's reading "Get-Mailbox - Resultsize..." which is wrong. That's a typo on the blog as well, but a quick bit of debugging would've picked that up! ;)

 

I'll correct the typo in the post.

 

Here is the email I received from Microsoft Support (Who were excellent, might I add):

 

I referred to the screenshot of the error and run similar tests on my domain. I figured that the issue is due to the absence of the following parameters “DateFormat” and “TimeFormat” in the PowerShell command.

 

The following command should work fine:

Get-Mailbox –Resultsize unlimited | Set-MailboxRegionalConfiguration -Language "en-gb" -TimeZone "GMT Standard Time" -DateFormat "dd/MM/yy" -TimeFormat "HH:mm"

 

DateFormat - "dd/MM/yyyy, dd/MM/yy, d/M/yy, d.M.yy, yyyy-MM-dd"

TimeFormat - "HH:mm, H:mm, hh:mm tt, h:mm tt"

 

However, I would suggest you to test the command for a single user using the following command:

Set-MailboxRegionalConfiguration –identity username -Language "en-gb" -TimeZone "GMT Standard Time" -DateFormat "dd/MM/yy" -TimeFormat "HH:mm"

 

Username – DisplayName or Email address of the user.

 

Verify the results using the following command:

Get-MailboxRegionalConfiguration username

Posted (edited)
Here is the email I received from Microsoft Support (Who were excellent, might I add)

 

I'm glad support were excellent! :)

 

I figured that the issue is due to the absence of the following parameters “DateFormat” and “TimeFormat” in the PowerShell command

 

Not in this case. Indeed, adding those parameters is possible for the command to still work, but the error in your screen shot clearly states that it cannot find a parameter to bind the argument "Resultsize" to. This is because there's a superfluous space between "-" and "resultsize". I have since gone back, pasted the exact bit of code from my blog into PS and tested it, reproduced the error, removed the space, and found that the code works as intended.

 

The extra parameters for DateFormat and TimeFormat shouldn't be needed if you just want to overcome the first-login regional settings screen, but you can be all means include them anyway. The bit of code I posted up is designed to be run so that your end users don't have to go through the process of selecting the correct language and country, as often they accidentally make the wrong choice, or deliberately end up picking something for a laugh and then they're unable to figure out how to change it back! :)

Edited by jamesbmarshall
Spelling!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...