In this post, we will now cover all the possible ways to move files and folders in Windows 11/10 with the help of Context Menu, File Explorer, Power Shell, Command Prompt, and so. They are mentioned ...
Run a copy job and copy your Program Files directory to the new location. Then, change the registry key for it in HKLM\Software\Microsoft\Windows\CurrentVersion. The key is named "ProgramFilesDir".
To do it the way you want, I think you'll have the best luck hooking up that hard drive as a secondary drive in a different machine, boot up the other machine and doing all of the moves that way.