如何为用户设置语言和Office 365
2021/6/9
适用于:
Office 365
本文内容
备注
Office 365 ProPlus 正在重命名为 适用于企业的 Microsoft 365 应用。 有关此更改的详细信息, 请阅读此博客文章。
摘要
本文介绍如何使用 Office 365 PowerShell 为所有用户集中设置所有 Office 365 服务 (包括 OneDrive For Business、Delve 和 SharePoint Online) 的语言和地区设置。
更多信息
对于 Office 365 服务 (包括 OneDrive For Business、Delve 和 SharePoint Online) ,可以使用 Office 365 PowerShell 在云标识或同步标识模型中更改用户级别的语言和地区设置。
注意 在同步设置之前,应在 SharePoint Online 网站上配置备用语言设置。 为此,请按照下列步骤操作:
在团队网站上,选择 "设置 > 网站设置"。
在 "网站管理"中,选择"语言设置"。
在"语言设置 页上,选择您的网站应支持的备用语言。
单击“确定”。
对于除Office 365服务之外的所有Exchange Online
云标识模型
若要使用用户 ID 同步设置,请替换实际值后运行以下示例 cmdlet:
Get-MsolUser -UserPrincipalName user1@contoso.com | Set-MsolUser -PreferredLanguage "it-it"
Get-MsolUser -UserPrincipalName user1@contoso.com | Set-MsolUser –UsageLocation IT
同步标识模型
若要使用 Active Directory 本地实例同步设置,请替换实际值后运行以下示例 cmdlet:
Get-ADUser -SearchBase "OU=Italy,OU=Countries,DC=contoso,DC=com" -Filter * | Set-ADUser –replace @{PreferredLanguage="it-it"}
Get-MsolUser -UserPrincipalName user1@contoso.com | Set-MsolUser –UsageLocation IT
然后,强制设置通过 Azure AD 连接。
For Exchange Online
若要同步Exchange Online,请替换实际值后运行以下示例 cmdlet:
Get-Mailbox user1@contoso.com | Get-MailboxRegionalConfiguration | Set-MailboxRegionalConfiguration -Language it-it -DateFormat "dd/MM/yyyy" -TimeFormat "HH:mm" -TimeZone "W. Europe Standard Time"
注意 更改需要 1 到 2 个小时才能反映在所有服务上。