How do you reprogram a desktop computer?

Unless you are a hobbyist or a professional computer programmer, you do not need to do any "programming" for your computer. You are probably wanting to reinstall your operating system. This is not the same thing as programming.