SharePoint Online CSOM Update Region Settings

By |2017-12-11T10:32:54+00:00April 8th, 2016|Sharepoint|0 Comments

Just a quick post with an example of how to update a SharePoint Online Site Collection’s Region settings via SharePoint Online Management Shell.

  • First, set up your ClientContext in the normal manner:
$Password = ConvertTo-SecureString -String "yourPassword" -AsPlainText -Force;
$ctx = New-Object Microsoft.SharePoint.Client.ClientContext("");
$ctx.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials(", $Password);
  • Now we need to set up our target web site object:
$web = $ctx.Web;
  • Next, update the settings. In this example, I’m setting the LocaleId to 2057 (en-UK)
$web.RegionalSettings.LocaleId = 2057;
  • Finally, run the ExecuteQuery method to apply the changes:



  • Locale Identity (LCID):
  • ClientContext.Web Property:

Leave A Comment

like what you see? 

Sign-up to our newsletter and never miss out on the latest blogs, events and tech news from the world of risual
Give it a try, you can unsubscribe anytime.