Solved

Bulk Office 365 - Set Time Zone, Date Format, Time Format and Language PowerShell

Posted on 2014-12-15
1
358 Views
Last Modified: 2015-01-19
Hi,

I have the following script:

$users = Get-Mailbox -ResultSize unlimited -Filter {(RecipientTypeDetails -eq 'UserMailbox')} 
$users | %{Set-MailboxRegionalConfiguration $_.Identity -TimeZone "GMT Standard Time" –Language en-EN -DateFormat "dd.MM.yyyy" -TimeFormat "HH:mm"}

Open in new window


This will set all mailboxes to GMT and English. I am trying to do a bulk group from a CSV, is this possible? Also Language English more than one version, how to ensure the correct English language is picked?

Regards,

introlux
0
Comment
Question by:introlux
1 Comment
 
LVL 18

Accepted Solution

by:
Raheman M. Abdul earned 500 total points
ID: 40500208
$langCode= 2057     # This is language code for English United Kingdom. For more codes see : https://www.cogmotive.com/blog/office-365-tips/set-language-and-time-zone-for-all-owa-users-in-office-365

$users =import-csv c:\temp\userMailboxes.csv
$users | %{Set-MailboxRegionalConfiguration $_.MailboxIdentity -TimeZone "GMT Standard Time" –Language  $langCode -DateFormat "dd.MM.yyyy" -TimeFormat "HH:mm"}
                                  

Open in new window

first column should have MailboxIdentity

MailboxIdentity
mailbox1
mailbox2
mailbox3
....
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The following article is intended as a guide to using PowerShell as a more versatile and reliable form of application detection in SCCM.
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
This video discusses moving either the default database or any database to a new volume.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question