I required a script that would run automatically for a user from a RunOnce key. This powershell script gives the user a message box asking if they would like to restart now or later. If they choose “yes” it will reboot now, if they choose “No” or “Cancel” it will not restart but will give the user a message box telling them that they need to restart manually ASAP.