【发布时间】:2017-10-24 23:42:43
【问题描述】:
我正在尝试使用 PowerShell 向我的 SharePoint 网站添加替代语言:
$sitetenant = "https://mytenat-admin.sharepoint.com"
$credential = Get-Credential
Connect-SPOService -Url $sitetenant -Credential $credential
$sites = Get-SPOSite "https://mytenat.sharepoint.com/site"
foreach($site in $sites)
{
$culture = New-Object System.Globalization.CultureInfo(1033)
$site.AddSupportedUICulture($culture)
$site.Update()
}
我认为 SharePoint Online 中不存在此方法?
【问题讨论】:
-
打开网站集的 RootWeb 并将所需语言的 LCID 传递给 AddSupportedUICulture 方法。例如。
$web = $site.OpenWeb(); $web.AddSupportedUICulture(1031)
标签: powershell sharepoint office365 sharepoint-online