Quantcast
Channel: Cloud Security | Office 365 | Azure | SharePoint
Viewing all articles
Browse latest Browse all 72

Possible uses for the PowerShell loop through each site script

$
0
0

A few posts ago I created a script that loops through each site in a site collection. The script is located at http://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()

The post Possible uses for the PowerShell loop through each site script appeared first on SharePoint Fire.


Viewing all articles
Browse latest Browse all 72

Trending Articles