快捷搜索:  as  1111  test  xxx  FtCWSyGV  w3viyKQx  С˵  as(),()(,)

sharepoint 2013站点批量修改区域设置

cls

[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")foreach ($webApplication in Get-SPWebApplication) {

Write-HostWrite-Host "Processing $webApplication"

Write-Host "奸淫奸淫奸淫奸淫奸淫奸淫奸淫奸淫奸淫奸淫"$webApplication.DefaultTimeZone = 45#only set the default time zone, cannot change the time zone

foreach ($site in $webApplication.Sites) {

$webs = $site.AllWebs

Write-HostWrite-Host "Processing $site"

Write-Host "奸淫奸淫奸淫奸淫奸淫奸淫奸淫奸淫奸淫奸淫"foreach ($web in $webs) {

$culture=[System.Globalization.CultureInfo]::CreateSpecificCulture("zh-cn")$web.Locale=$culture

#write-host $web.RegionalSettings.TimeZone #= 45$web.Update()

$web.Dispose()Write-Host $web.Url

}}

$webApplication.Update()}

您可能还会对下面的文章感兴趣: