Error with Set-ADSyncAADCompanyFeature in Azure AD Connect

Richard Burrs 1 Reputation point

Hello, When I try to enable "force password on next logon" in Azure AD Connect using Set-ADSyncAADCompanyFeature I get the attached error. I verified that the Connector name is right by using Get-ADSyncConnector | select name.![7652-error.png][1] [1]: /api/attachments/7652-error.png?platform=QnA

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,094 questions
0 comments No comments
{count} votes

5 answers

Sort by: Most helpful
  1. Saurabh Sharma 23,771 Reputation points Microsoft Employee

    Please try running the command Set-ADSyncAADCompanyFeature  -ForcePasswordChangeOnLogOn $true.
    Also, what version of AAD Connect you are using ?

  2. Richard Burrs 1 Reputation point

    That parameter is not an option for me. I have to use Set-ADSyncAADCompanyFeature  -ForcePasswordResetOnLogonFeature $true. I'm thinking the connector needs to be updated.

    0 comments No comments

  3. Richard Burrs 1 Reputation point

    The version of Azure AD connect is

  4. Richard Burrs 1 Reputation point

    No I haven't updated the connector yet. I plan to do it this Saturday.

    0 comments No comments

  5. Richard Burrs 1 Reputation point

    Hi Saurabh,

    I updated the connector and was able to successfully run the command.