Change User Principal Name equals Email Address Automation
Change User Principal Name equals Email Address script for automation. It save a lot of time to check manually and run it in a periodic manner.
please refer test commands in the blog or inside the script before running the script.