SharePoint Online CSOM Update Region Settings

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

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: