Reinstalling Windows is an important strategy for any geek, and a useful skill for anybody who doesn't want to pay one. By starting over with a clean copy of the operating system, you can remove bloatware, wipe out malware, and fix other system problems.

A full, clean reinstall is different from the Refresh or Reset your PC options in Windows 8, or a manufacturer's recovery partition or disk for Windows 7. Those built-in options will set your PC back to its factory-default state--which could include some vendor-installed junk you never wanted anyway. A clean install uses the generic Windows installation media that you can download from Microsoft, and it'll have just the OS, no other frills.

You shouldn't need to regularly reinstall Windows to keep it performing well. But, if a computer is bogged down by startup programs, context menu items, and years of junk, reinstalling Windows may be the quickest way to speed it up again.

Reinstalling Windows can also save a computer infected with malware or afflicted by blue-screens and other system problems caused by software issues.

Before we begin, back up all of your personal data. While you should back up your data regularly, it is especially important to do so before reinstalling an operating system.

Refresh or Reset Your PC (Windows 8 and newer)

Windows 8 includes "Refresh your PC" and "Reset your PC" features that attempt to make installing Windows easier. Both of these options actually perform a Windows reinstall in the background, quickly installing a fresh Windows system from the recovery files on your computer's drive, a Windows installation disc or USB drive.

The Refresh your PC feature saves your personal files and Windows Store apps, but it removes all your installed desktop programs. You'll have to install all your desktop programs again, but that's the point: You get a fresh Windows desktop system with all your system files in a known-good state.

The Reset your PC feature wipes everything, including your personal files. It can even wipe your system drive so no one can recover those personal files later. This is the easiest way to remove your stuff from a PC before getting rid of it.

Both of these options are available in the modern PC settings app under Update and recovery > Recovery. If your computer isn't booting properly, it will boot to the advanced startup options menu, where you can select Troubleshoot to refresh or reset your PC. You can also access these options by booting from a Windows recovery drive.

Use your manufacturer's recovery partition or discs (Windows 7 or earlier)

In Windows 7 and previous versions of Windows, it's up to the PC manufacturer to provide a recovery partition or recovery discs. Most manufacturers don't include Windows installation discs with their computers.

If your computer has a recovery partition, run your manufacturer's recovery tool to reinstall Windows. On many PCs, you'll have to press a key during the boot process to access the recovery tool. This key may be displayed on your screen. It should also be printed in your computer's manual.

If your computer comes with a recovery disc, you can also insert it in your computer's optical drive and boot from it to begin reinstalling Windows. You'll end up with the manufacturer's like-new Windows system on your drive. All the original drivers will be installed, which is good, but all that nasty bloatware will also come back--that's bad. You'll have to remove unwanted junk software after you reinstall.

Download Windows Installation Media

Refresh, reset, and manufacturer-approved recovery tools may not help you get a clean, fresh Windows system. Reinstalling Windows from a Windows installation disc will.

If you've built your own PC and installed Windows on it, you should have a Windows disc lying around. If you don't have a disc, you can download Windows 8 or 8.1 installation media from Microsoft or download a Windows 7 ISO file from Digital River. You can find the product key currently in-use on your Windows PC with a tool like NirSoft's ProduKey. Write it down--you may need it later.

The Windows 8 and 8.1 tool will guide you through creating USB installation media. If you've downloaded a Windows 7 ISO file and you'd rather not burn it to disc, you can use Microsoft's Windows 7 USB/DVD download tool to put that Windows system on a USB drive and install it from USB.

Boot the Windows Installation Media

To perform a clean install of Windows, insert your installation media into your computer's optical drive or USB port and reboot. Your computer should automatically boot from the removable media.

If it doesn't, you may need to enter the computer's BIOS and change its boot order or press a key during the boot process to access a boot menu and choose a boot device.

New Windows 8 and 8.1 PCs with UEFI firmware allow you to choose a boot device in a different way. From within Windows, hold Shift and click the Restart option on the Settings charm panel or on the Start screen. You can also open the PC settings app, navigating to Update and recovery > Recovery and clicking Restart now under Advanced startup.'

Your computer will reboot into the Advanced Startup Options menu. Select Use a device and choose the device you want to boot from. If your computer can't boot Windows properly, don't worry: It will boot directly to this menu so you can use these options to help fix things.

Reinstall Windows

Once the Windows installation media is booted, the Windows installer will take over and guide you through the process.

Pay particular attention to the disk partitioning options. You'll want to replace your old Windows system without overwriting any other partitions or files you want to keep.

Download drivers for your PC

Modern versions of Windows have more built-in drivers than ever, so most of your PC's hardware should work out of the box.

You can also grab the drivers and utilities you may need for your PC's hardware from the manufacturer's website.

Go to the manufacturer's website and find the downloads page associated with your specific PC model. You can choose which files to download and install. During installation, be sure to un-check any boxes that will install any bloatware.

If you built your own PC, you'll find these drivers and tools on the individual pages for each hardware component.

Create a custom refresh image

Microsoft includes command-line tool with Windows 8 called recimg to create custom recovery images.

This will save a lot of time and effort during any future refreshes.

First, make sure to uninstall bloatware and perform your favorite tweaks right after you get a new PC or reinstall Windows. Next, install your favorite software. Changes will be saved in the recovery image, so you don't have to make them every time you refresh your PC.

Be sure to have a clean system before running recimg.Your custom recovery image won't be squeaky clean if you've been using your Windows installation for a while, collecting temporary files and other garbage.

Microsoft tried to eliminate the need for all this fiddling with Windows 8's Refresh your PC feature, but the feature doesn't go all the way. Sometimes, the best solution is to wipe everything and start with a clean slate.