Error with Set-ADSyncAADCompanyFeature in Azure AD Connect

Richard Burrs 1 Reputation point
2020-04-23T00:09:46.783+00:00

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.
19,453 questions
0 comments No comments
{count} votes

5 answers

Sort by: Most helpful
  1. Saurabh Sharma 23,671 Reputation points Microsoft Employee
    2020-04-23T01:23:53.01+00:00

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


  2. Richard Burrs 1 Reputation point
    2020-04-25T13:43:32.007+00:00

    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
    2020-04-29T14:53:15.57+00:00

    The version of Azure AD connect is 1.3.21.0


  4. Richard Burrs 1 Reputation point
    2020-05-05T19:27:24.223+00:00

    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
    2020-05-14T18:11:36.877+00:00

    Hi Saurabh,

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

    Thanks,

    Richard