Created
November 5, 2020 22:10
-
-
Save pkbullock/2106323c38bb80edd804e3345a8155a8 to your computer and use it in GitHub Desktop.
Apply UK Locale using PnP PowerShell (Classic)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Connect-PnPOnline https://tenant.sharepoint.com/sites/yoursite | |
$LocaleId = 2057 # UK | |
$TimeZoneId = 2 # London | |
$web = Get-PnPWeb -Includes RegionalSettings,RegionalSettings.TimeZones | |
$timeZone = $web.RegionalSettings.TimeZones | Where-Object {$_.Id -eq $TimeZoneId} | |
$web.RegionalSettings.LocaleId = $LocaleId | |
$web.RegionalSettings.TimeZone = $timeZone | |
$web.Update() | |
Invoke-PnPQuery |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment