Change user password via Anonymous Apex Code

In case when user don’t have access to their email, and forget Salesforce password. Administrator can change the password by executing following line of code in the Execute Anonymous Window.

In Developer Console, press  Ctrl + E Execute above code, remember to replace Use ID and Password. Click Read more…