So I needed to ensure that all sites in my farm were formatting dates in the British format …
Powershell, once again, to the rescue! This is what I ended up with …
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
Add-PSSnapin Microsoft.SharePoint.PowerShell foreach ($app in Get-SPWebApplication) { foreach ($site in $app.Sites) { foreach($web in $site.AllWebs) { Write-Host processing $web in site $site in app $app If ($web.locale -ne 2057) { $web.Locale = 2057; $web.Update(); Write-Host UPDATED $web in site $site in app $app } } } } |