First we will see how to do it for one account then we will see how to do it for multiple accounts.
1. Install Prerequisites:
We will need MSOnline module to connect to Office 365 with PowerShell.
Open a PowerShell prompt with administrator rights :
3.Connect to Office 365
Use Connect-MsolService to open the Microsoft Office 365 sign in window :
4.Reset user password :
4A.Force new password :
With this command we can set a
password for a user :
ForceChangePassword : Indicates
whether the user must change the password the next time they sign in....
4B.Force user to change password at next logon
After this command, the update password procedure will
happen next time user will connect (it will be slower to apply with Outlook
clients because it uses a cache mechanism) :
-ForceChangePassword: Indicates whether the user must
change the password the next time they sign in
ForceChangePasswordOnly: prevents the command Set-MsolUserPassword from generating a random password (source)
Comments
Post a Comment