Hi. Thank you for your question and reaching out. I’d be more than happy to help you with your query.
The error "Update-AdmPwdADSchema: An operation error occurred" when running the "Update-AdmPwdADSchema" cmdlet in Microsoft Active Directory might indicate a problem with the Active Directory Schema or with the permissions of the account that is running the cmdlet.
Here are a few steps you can try to resolve the issue:
- Check the Schema Master Role: The Schema Master role should be held by only one domain controller in the forest. Ensure that the domain controller you are running the cmdlet on is the Schema Master.
- Check the Account Permissions: The account running the cmdlet must be a member of the "Schema Admins" group and a local administrator on the target domain controller. Ensure that the account has the required permissions.
- Check the Active Directory Health: Check the health of the Active Directory by running the "dcdiag" and "repadmin" tools. If there are any issues with the Active Directory, resolve them before attempting to run the cmdlet again.
- Check for Updates: Ensure that you have the latest updates and patches installed for the operating system and Active Directory.
- Try with a Different Account: If the issue persists, try running the cmdlet with a different account that has the required permissions.
If the reply was helpful, please don’t forget to upvote or accept as answer, thank you.