Admin password auto-change


I have posted this topic last week.
I reback on it beacause i haven’t solve my issue yet.

My goal: when computer (windows server 2012) reboot, the user will be ask to create a new password. we will not ask him to enter the old password because he won’t have to know it. So I want to know if somebody can help me to write this scipt.

Thank’s everyone for your help.


Hello Arnold,

This could be a method to hack a server you do not have access to.

But, I do think you will get that question when you are logging in, and so you must have the password? Am I correct?