与Office 365相关的其他信息:
(如何将密码配置为在Office 365中永不过期)
O365的密码永不过期。您可以按照以下步骤操作:
- 去 <http://onlinehelp.microsoft.com/en-us/office365-enterprises/hh124998.aspx 并下载32位或64位MSOL PowerShell Cmdlet
- 开始> All Programs > Accessories >Microsoft在线服务> Right Click onMicrosoft在线服务Module for Win >以管理员身份运行
- 在Windows Power Shell中运行以下命令:
Get-ExecutionPolicyà 验证是否将其设置为“受限”
- 通过运行以下命令将其更改为“ RemoteSigned”:Set-ExecutionPolicy RemoteSigned
- 逐一执行以下操作,并确保输入管理员凭据:
导入模块msonline
$ cred =获取凭证
Connect-MsolService -cred $ cred
获取命令–模块msonline
- 执行以下命令以将密码设置为永不过期对于一个用户:
Set-MsolUser -UserPrincipalName<user ID>-PasswordNeverExpires $ true
对于域中的所有用户:
Get-MSOLUser | Set-MsolUser-PasswordNeverExpires $ true
- 执行以下命令以验证密码是否设置为永不过期:
对于一个用户:
Get-MSOLUser -UserPrincipalName<用户身份>|选择密码永不过期
对于域中的所有用户:
Get-MSOLUser |选择UserPrincipalName,PasswordNeverExpires
帮助文章:<http://onlinehelp.microsoft.com/en-us/office365-enterprises/hh534387.aspx