Hi All,
Refer this script for resetting the password of the user connected to a domain,
https://scripts.comodo.com/frontend/web/topic/script-to-reset-a-password-for-a-user-that-is-on-the-domain
Note:
Run as System User
Thank you