I'm assembling a PC for my mother out of old parts I no longer use. I shall refer to it as PC 2. PC 2 will get its HDD from my main PC (PC 1). For reasons that are irrelevant to my question, I want to install Windows on that HDD before I assemble PC 2. Like I said, the HDD is currently on PC 1, which has Windows 10 installed on another drive (M.2 SSD). My wish is to install Windows on the HDD while it's still attached to PC1, then detach it and attach it to PC2. Is that going to work? Should I do it? I wouldn't want to mess up the Windows that's already installed on PC 1.
You can just normally install windows as long as you make sure that the boot files get written to the same disk (mainly by disconnecting any other drive) and making sure to take the drive out after the windows image has been written to the disk. If you shut down instead of rebooting before the configuration starts you can swap the disk to PC2 and all the configuration will be done for that PC and everything will work 100% normally.
Windows is just a clone image that you can apply even manually.
You can use the command line from your current windows if you choose to install/apply to a different disk.
This command takes the installation file from drive E: and installs it to drive G:
change E: and G: to whatever the DVD and drive you want to install to is currently lettered as. To mount the installation media DVD just double click on it
and windows will mount it.
dism /Apply-Image /ImageFile E:\Sources\install.esd /index:1 /ApplyDir:G:\
index:1 takes the first option, usually windows x64 home, if you want to install something else
(always only install the version you have the license for) you can use this command to see your options.
dism /Get-WimInfo /WimFile E:\Sources\install.esd
This will completely ignore any tpm or cpu compatibilities.
To make this bootable add it to the boot menu either with easybcd (careful to load the bcdstore from the disk you applied the image to and not use the one from your main pc) the if you already in windows,
or by using this command from recovery.
G:\Windows\System32\bcdboot G:\Windows
Again changing G: to whatever your win11 drive is currently lettered as.
Only boot from this disk on PC2.