You need to install the correct driver for your AHCI storage controller before changing the mode in the BIOS.

Booting into Safe Mode will work even though the storage mode has been changed… Windows will notice the change and load the correct driver on the next normal boot. Basically that means, you can do this:

  1. Run cmdas administrator (not PowerShell, you would have to escape {…})
  2. Copy-paste this command, which will start Windows in Safe Mode the next time you reboot:
  3. bcdedit /set {current} safeboot minimal
  4. Restart the computer and enter UEFI/BIOS setup.
  5. Change the SATA operation mode from RAID to AHCI.
  6. Save changes and exit Setup and Windows will automatically boot to Safe Mode.
  7. Launch cmdagain, as in step #1.
  8. Copy-paste this command, which will start Windows in Normal Mode the next time you reboot:
  9. bcdedit /deletevalue {current} safeboot
  10. Reboot and Windows will automatically start with AHCI drivers enabled.

Note: Switching to AHCI is essential if you want to install any Linux as RAID mode is to my knowledge not supported, so you would not see your drive(s) in the installation menu.

.