If Windows was installed with IDE setting, you must follow the following steps to change it to AHCI. Failure to do so will make your Windows installation non bootable.
Right-click the Windows Start Menu. Choose Command Prompt (Admin). If Windows PowerShell is installed on your system, open a Windows PowerShell (Admin) window, and then enter “cmd” to ope a Command Prompt. bcdedit does not work within the PowerShell.
Type this command and press ENTER: bcdedit /set {current} safeboot minimal
Restart the computer and enter BIOS Setup (the key to press varies between systems).
Change the SATA Operation mode to AHCI from either IDE or RAID (again, the language varies).
Save changes and exit Setup and Windows will automatically boot to Safe Mode.
Right-click the Windows Start Menu once more. Choose Command Prompt (Admin), according to Step 1.
Type this command and press ENTER: bcdedit /deletevalue {current} safeboot
Reboot once more and Windows will automatically start with AHCI drivers enabled.
You can check that the AHCI drivers are active by navigating to Control Panel → Device Manager → IDE ATA/ATAPI Controller.