question

rbb73 avatar image
0 Votes"
rbb73 asked ·

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


azure-active-directoryazure-ad-connect
error.png (19.3 KiB)
10 |1000 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.

rbb73 avatar image
0 Votes"
rbb73 answered ·

Hi Saurabh,

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

Thanks,

Richard

· 1 ·
10 |1000 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.

@rbb73 Please "Accept the answer" to help others in the community as well.

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

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





· 1 ·
10 |1000 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.

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

0 Votes 0 ·
rbb73 avatar image
0 Votes"
rbb73 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.

·
10 |1000 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.

rbb73 avatar image
0 Votes"
rbb73 answered ·

The version of Azure AD connect is 1.3.21.0

· 2 ·
10 |1000 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.

@rbb73 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 ·

@rbb73 Just checking in if you are able to run the cmdlet ?

0 Votes 0 ·
rbb73 avatar image
0 Votes"
rbb73 answered ·

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

·
10 |1000 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.