Powershell - Set-Msoluserpassword

Associate
Joined
20 Aug 2007
Posts
1,333
Location
Solihull
Hey guys, random question - I normally use powershell to administer my company's office 365 subscription. One thing I've never understood however, is why when I set a password, as soon as the user logs in, it asks them to change it, am I missing a cmdlet? For example:

Set-MsolUserPassword -UserPrincipleName [email protected] -NewPassword "Password@12"

That changes the password, but the user logs into the portal and it asks them to change it, can someone assist?
 
It's in our global policy that we must not know any user passwords for our protection

Set-MsolUserPassword -ObjectId <Guid> [-ForceChangePassword <Boolean>] [-NewPassword <string>] [-TenantId <Guid>] [<CommonParameters>]
 
It's in our global policy that we must not know any user passwords for our protection

Set-MsolUserPassword -ObjectId <Guid> [-ForceChangePassword <Boolean>] [-NewPassword <string>] [-TenantId <Guid>] [<CommonParameters>]

Can you just use my example from above and create an example of this in use please? :)
 
That sounds like password history which you can't override using the cmdlet
Although it's purely academic, the password history only applies when the end user changes their own password - a password reset is different to a password change as far as the system is concerned. Yes, I'm being pedantic (sorry).
 
Back
Top Bottom