question

RichardBurrs-6923 avatar image
0 Votes"
RichardBurrs-6923 asked azure-cxp-api edited

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]: /answers/storage/attachments/7652-error.png

azure-active-directoryazure-ad-connect
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

RichardBurrs-6923 avatar image
0 Votes"
RichardBurrs-6923 answered amanpreetsingh-msft commented

Hi Saurabh,

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

Thanks,

Richard

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

anonymous user Please "Accept the answer" to help others in the community as well.

1 Vote 1 ·
SaurabhSharma-msft avatar image
0 Votes"
SaurabhSharma-msft answered SaurabhSharma-msft edited

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





· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

anonymous user Just checking in if you are able to execute the command to enable force password change on log on ?

0 Votes 0 ·
RichardBurrs-6923 avatar image
0 Votes"
RichardBurrs-6923 answered

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

RichardBurrs-6923 avatar image
0 Votes"
RichardBurrs-6923 answered SaurabhSharma-msft commented

The version of Azure AD connect is 1.3.21.0

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

anonymous user Ok, I have checked this earlier on Azure AD Connect 1.4.18. Please try updating the version. Also, the document refers to -ForcePasswordChangeOnLogOn for forcing password change on next logon.


0 Votes 0 ·

anonymous user Just checking in if you are able to run the cmdlet ?

0 Votes 0 ·
RichardBurrs-6923 avatar image
0 Votes"
RichardBurrs-6923 answered

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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.