首页 > 其他 > 详细

修改sharepoint 2013站点里区域设置

时间:2014-07-02 23:11:45      阅读:387      评论:0      收藏:0      [点我收藏+]

cls
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
foreach ($webApplication in Get-SPWebApplication) {
    Write-Host
    Write-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-Host
        Write-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()
}

修改sharepoint 2013站点里区域设置,布布扣,bubuko.com

修改sharepoint 2013站点里区域设置

原文:http://www.cnblogs.com/fengwenit/p/3818864.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!