User is required to change their password when they first sign in is greyed out?

Nip, Ken 0 Reputation points
2024-09-25T14:26:30.65+00:00

One of our admin unable to uncheck the "Change on first sign-in" on Office 365 portal during user password reset. Could you help?

Microsoft Exchange Hybrid Management
Microsoft Exchange Hybrid Management
Microsoft Exchange: Microsoft messaging and collaboration software.Hybrid Management: Organizing, handling, directing or controlling hybrid deployments.
2,085 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Alex Zhang-MSFT 710 Reputation points Microsoft Vendor
    2024-09-26T06:39:19.8+00:00

    Hello, @Nip, Ken,

    Welcome to the Microsoft Q&A platform!

    Based on your description, I understand that you want to know how to uncheck the "Change on first sign-in" on M365 portal during user password reset.

    After testing, “User is required to change their password when they first sign in” is grayed out and cannot be unchecked on M365, whether you create a new user or reset a user's password. This is definitely an update made by Microsoft to keep its users safe.User's image User's image

    If you want the user to cancel "Change on first sign-in" , you just need to use PowerShell according to my testing process.

    1.I reset a user’s password in M365 and when logging into the account for the first time I am asked to change the password.

    User's image

    1. I used the following command in PowerShell to disable forced password changes.
    Set-MsolUserPassword -UserPrincipalName user@domain.com -ForceChangePasswordOnly $false -ForceChangePassword $false
    

    User's image

    (Suppose you want to disable forcing all users to change their passwords, please use the following command.)

    Get-MsolUser -All | Set-MsolUserPassword -ForceChangePasswordOnly $false -ForceChangePassword $false
    
    

    3.When I tried to log into the account again for the first time, it logged in successfully straight away and didn't ask me to reset my password.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Thank you for your support and understanding.

    Best Wishes,

    Alex Zhang

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.