Please try running the command Set-ADSyncAADCompanyFeature -ForcePasswordChangeOnLogOn $true
.
Also, what version of AAD Connect you are using ?
Error with Set-ADSyncAADCompanyFeature in Azure AD Connect
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
5 answers
Sort by: Oldest
-
Saurabh Sharma 23,751 Reputation points Microsoft Employee
2020-04-23T01:23:53.01+00:00 -
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.
-
Richard Burrs 1 Reputation point
2020-04-29T14:53:15.57+00:00 The version of Azure AD connect is 1.3.21.0
-
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.
-
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