@Benard Mwanza As mentioned by one of our experts you can run the above command as well you check whether password writeback is enabled on your tenant by going to this section of portal.azure.com
Azure Active Directory -> Password Reset -> On-premises integration
Reference: https://www.powershellcenter.com/2021/08/09/adconnect-issue1/