Last year I've installed a clean copy of Windows 8 (later upgraded to 8.1) on a new laptop. This process was challenging because the laptop included Windows 8 pre-installed (plus bloatware), and my Windows 8 ISO (which I bought before from a Windows 7 upgrade) rejected the serial key that came with the laptop. I had to find the official ISO compatible with my keys and OEM installation.
Now I need to migrate this Windows installation to another laptop. Basically moving the hard disk. Long time ago, I recall that there was a command I could run on Windows to set in a special way such that—upon the next boot—it will scan the hardware and re-configure drivers as needed.
Can I do the same with Windows 8.1? I can imagine that today it's a little more complicated (UEFI, signed Bios, etc). I'd like to avoid re-installing everything one more time.