With my son's Toshiba, running Vista, we had created the restore DVDs when new. When the hard drive died I simply replaced it and used the recovery DVDs to reinstall as new. Everything was as factory set and we could even create the recovery discs again. Hope that helps.
How to get Windows 10 now: how to download and install Windows 10 even if GWX.exe is missing