您的位置:首页 > 运维架构 > Shell

Office 365 IT Professional——利用PowerShell设置Reset Password

2015-08-26 11:21 721 查看
管理员可以通过如下命令修改该用户的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,此处管理员设置的密码为临时密码。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: