Sep 13
Change SharePoint Online Web & Sub Web Regional Settings

Ever have a need to change an entire site collections regional and locale settings in bulk?

Here is a nice little PowerShell which I wrote to do exactly that.

It does requires the SharePoint Client Framework to be installed.

In essence, it loops thru each sub web and updates the regional settings to the supplied values.

image

Usage:

.\Set-SPOWebRegionalSettings.ps1 –SiteUrl “https://<tentant.sharepoint.com/<location to site/” –UserName “<YOUR USERNAME">” –PassWord “<YOUR PASSWORD> -NewCulture "en-au" -NewTimeZoneID 19

* 19 is for Adelaide

Time zone details can be located at: https://msdn.microsoft.com/library/microsoft.sharepoint.spregionalsettings.timezones.aspx

You can find the script on my GitHub located at: https://github.com/DanielBrownAU/Scripts/blob/master/SPO/Set-SPOWebRegionalSettings.ps1

Thanks to Ivan Yankulov for his Get-SPOAllWebs cmdlet - http://www.sptrenches.com/2015/04/script-to-get-all-webs-in-sharepoint.html

Hope this helps!

Comments

There are no comments for this post.