Post

Possible uses for the PowerShell loop through each site script
A few posts ago I created a script that loops through each site in a site collection. The script is located at https://www.sharepointfire.com/2016/05/powershell-script-to-loop-through-each-sharepoint-online-site/. I’ll use this post to add all the commands I’ve used with this script. The below commands are specially created for SharePoint Online and it’s using the CSOM. Changing Locale ID for […]

A few posts ago I created a script that loops through each site in a site collection. The script is located at https://www.sharepointfire.com/2016/05/powershell-script-to-loop-through-each-sharepoint-online-site/. I’ll use this post to add all the commands I’ve used with this script. The below commands are specially created for SharePoint Online and it’s using the CSOM.

Changing Locale ID for each site

The below commands are there to change the locale ID for each site and to change the time to 24h in stead of 12h

$web.RegionalSettings.LocaleId = 1043
$web.RegionalSettings.time24 = $true
$web.update()
$context.executequery()

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Archive