管理员可以通过如下命令修改该用户的Password,但需要注意,管理员所输入的Password是临时的,该用户再次登录Office365时,需要更改Password。
Set-MsolUserPassword –UserPrincipalName “userprincipalname”–NewPassword “newpassword”
以 ShelleyLiu0415@AvePointCC.OnMicrosoft.com 为例,将其Password进行修改,具体步骤如下:
1. 用Administrator打开Azure ActiveDirectory Module for Windows PowerShell这个工具,输入如下命令,链接Online Service:
import-modulemsonline
$cred=get-credential
Connect-msolservice–credential $cred
2. 根据需求,输入如下命令:
Set-MsolUserPassword–UserPrincipalName “ShelleyLiu0415@AvePointCC.OnMicrosoft.com” –NewPassword “2wsx3edcR”,如下图所示:
3. 用户登录Office 365后,需重新设置Password,此处管理员设置的密码为临时密码。