Using either imaging or cloning. Different processes, same result if successful.
Most would recommend Macrium Reflect Free Edition, but there are other choices.
Be prepared to do a clean install. Imaging or cloning has a success rate in the upper 90 percentages, but neither is guaranteed to succeed.
There is a learning curve of X hours. You have to decide if X is more or fewer hours than the hours required for a clean install of Windows and all programs.