I regularly do a restore from disk image created by Win10 with (Backup and Restore - Windows7) by booting with Win10 recovery usb. And sometimes this installation loses its activation, complaining about incorrect profile/cannot contact activation servers, etc. Well I have created a crude script that I ran for 4 hours and it eventually got the installation activated again :loop cscript /nologo slmgr.vbs /ato echo Trying... timeout 5 goto loop You need to save this as .cmd file and run it as Admin. it will try to automatically activate windows every 5 seconds. I know this script can be made much better, but it worked for me so hopefully it will help someone else out there as well.