Alright the above fix was for Windows 7/8 and now is causing a error in task viewer no surprise. It's logging a ton of event id 51 errors..."An error was detected on device \Device\CdRom0 during a paging operation."
However, I have found a better solution. The problem with my system is that Windows 10 was installled prior to not changing the hard drive controller configurations in the bios to AHCI instead of IDE. Not sure how they got mysteriously changed. I changed those prior to installing Windows 7. So this is a bios controller issue.The cdrom is SATA and that is the problem. I tried changing them to AHCI and booting Windows 10 and it won't load. Windows 10 didn't bother to load the AHCI controller drivers so it cannot detect the drive. Luckly there is a easy fix. If others out there are in the same boat as me you first you have to delete the registry key I posted above in cmd and reboot the system. Be sure to create a system restore point first.
reg delete HKLM\System\CurrentControlSet\Services\atapi\Controller0
You have to boot into safemode to get windows to load the AHCI driver. How to do that you right-click Start and Run and type msconfig. Change to boot tab and put a check into safe boot. Hit apply and You will get a prompt to restart into safe boot. The next step is important... Hit the key to go into bios and change the hard drive SATA controller configurations from IDE to AHCI save to bios and restart once more. Windows automagically loads the drivers for you. Now you go to run and type msconfig again and uncheck safe-boot and reboot the system. The drives should be AHCI and the dvd drive working. Confirm that they are AHCI you type devmgmt.msc in run and go to view and Devices by Connection. Scroll down to Standard SATA AHCI Controller and your drives should be listed there. Now create a system restore point again. Hopefully this sheds some light on this particular issue.
Typically in the bios if using 1-4 ports as IDE then 5-8 must also be IDE. However, 1-4 can be AHCI and 5-8 can be IDE. Or all 1-8 can be AHCI. This change reflects on which ports your HD and cdrom drives are plugged into on the motherboard and what your motherboard supports. So you may have to physically open the computer case and change the drive to a different sata port. For me I did not have to do this since my drives and cdrom drive are all SATA and on ports 1-4 and JBOD (just a bunch of disks no raid). So my setting I put them all on AHCI for future upgrades. If you still got IDE drives as well SATA then you will have to tinker around with it and get all the SATA drives on ports 1-4 and IDE's on ports 5-8 etc. Some motherboards have 6 ports some have 8 ports or more. Those of you using RAID and have this problem then god help you LOL! Using RAID you will likely have to rebuild the raid and reinstall Windows 7/8 from image backup and then upgrade to Windows 10.
Edited by technonymous, 25 August 2015 - 07:06 PM.