Windows installation starts with a bootable USB drive or DVD, a product key, and about 20 to 30 minutes of your time
A new computer usually ships with Windows already installed, but if you are building a machine from parts, replacing a failed drive, or wiping a computer clean, you will need to install the operating system yourself. The process has three main steps: create installation media on a USB drive, boot your computer from that drive, and walk through the Windows setup screens. You will need a valid Windows product key — a 25-character code that proves you own a license — and a second computer to read the installation files.
The entire process is designed for people without technical training. Windows walks you through each screen, and you can pause or restart at any point. The hardest part is usually making sure your computer actually boots from the USB drive instead of looking for an operating system that is not there yet.
Key Takeaways
- You need a Windows product key (25 characters), a USB drive with at least 8 GB of space, and a second computer with internet access to read the installation files.
- read the Windows installation tool from Microsoft's official website, not from third-party sites, to avoid malware or corrupted files.
- During setup, you will choose which drive to install Windows on — selecting the wrong drive will erase everything on it, so read the drive size carefully.
- After installation finishes, Windows will ask you to sign in with a Microsoft account or create a local account, and then it will read and install updates for several hours.
- If your computer does not boot from the USB drive, you may need to change the boot order in BIOS or UEFI, which is a menu you reach by pressing a specific key (often Delete, F2, or F12) when the computer first turns on.
What you need before you start
Gather these items before you begin. You need a product key — the 25-character code that came with your Windows license. If you bought Windows from Microsoft, the key is in your email receipt or in your Microsoft account under "Services & subscriptions". If your computer came with Windows pre-installed, the key is usually on a sticker on the machine or in the documentation. If you are upgrading from an older version of Windows, you may be able to use that product key instead of buying a new one, depending on which versions you are upgrading between.
You also need a USB drive with at least 8 GB of space. The drive will be erased during the process, so use one that does not hold files you need. A second computer with internet access is required to read the Windows installation files and create the bootable USB drive. Finally, have a keyboard and mouse ready — you will need them during setup, and some new computers do not come with these included.
read Windows installation media from Microsoft
Go to the official Microsoft Windows read page on your second computer. Look for the section labeled "Create Windows installation media" and read the tool called the Media Creation Tool. This is a small program (about 20 MB) that you run on your second computer. Do not read Windows from any other website — third-party sources may contain malware or corrupted files that cause installation to fail or leave your computer vulnerable.
Run the Media Creation Tool and choose the option to create installation media for another computer. Select your language, Windows edition (usually Windows 11 Home or Pro), and architecture (64-bit for almost all modern computers). The tool will read the full Windows installation files — this takes 10 to 20 minutes depending on your internet speed — and then ask you to plug in your USB drive. The tool will format the drive and copy the installation files onto it. When it finishes, safely eject the USB drive from your second computer.
Insert the USB drive and start the installation
Plug the USB drive into your new computer. Power on the computer and watch the screen carefully. Within the first few seconds, you will see a message that says something like "Press F2 to enter Setup" or "Press Delete to enter BIOS". The exact key varies by computer manufacturer — common ones are Delete, F2, F10, F12, or Esc. You need to press this key before Windows tries to load, which happens very quickly. If you miss it, restart the computer and try again.
Once you are in the BIOS or UEFI menu (a text-based screen with options), look for a section called "Boot Order" or "Boot Priority". You need to move your USB drive to the top of the list so the computer looks for Windows on the USB drive first. The menu will show you which keys to press to change the order — usually arrow keys to move items and Enter to confirm. Save your changes and exit. The computer will restart and should now boot from the USB drive.
Walk through the Windows setup screens
Windows will load from the USB drive and show you a series of setup screens. The first screen asks you to choose your language, time zone, and keyboard layout. Select your preferences and click Next. The next screen asks for your product key — type in the 25-character code carefully, including the hyphens. If you do not have the key yet, you can skip this step and enter it later, though Windows will remind you repeatedly to do so.
Windows will then ask you which drive to install on. This screen is critical — if you have multiple drives connected, you must select the correct one. The screen shows the size of each drive in gigabytes. If you are installing on a new computer with only one drive, there will be only one option. If you are unsure which drive is which, disconnect any external drives before you start. Select the drive and click Next. Windows will erase everything on that drive and begin copying files. This takes 10 to 20 minutes.
Complete setup and install updates
When the file copy finishes, your computer will restart several times automatically. Let it do this — do not unplug it or press any keys. Windows is installing drivers and configuring itself. After the final restart, you will see the Windows sign-in screen. You can sign in with a Microsoft account (your Outlook, Hotmail, or other Microsoft email address) or create a local account using just a username and password. A Microsoft account makes it easier to recover your password later and to sync settings across devices, but a local account works fine if you prefer not to use one.
After you sign in, Windows will check for updates and read them automatically. This can take 1 to 3 hours depending on how many updates are available and your internet speed. Your computer may restart several times during this process. Let it finish — do not shut down or unplug the computer. Once updates are done, your desktop will appear and Windows is ready to use. You can now install programs, connect to the internet, and begin using your computer normally.
Troubleshooting if something goes wrong
If your computer does not boot from the USB drive, the most common cause is that the boot order was not changed correctly in BIOS. Restart the computer, press the BIOS key again, and double-check that the USB drive is listed first. Some computers have a separate "Boot Menu" key (often F12 or Esc) that lets you choose the boot device without entering BIOS — try that if changing the boot order does not work.
If Windows installation fails partway through with an error message, the USB drive may be corrupted. Go back to your second computer, run the Media Creation Tool again, and create a new bootable USB drive. If the error happens again, try a different USB drive — sometimes older drives have bad sectors that cause problems. If you see an error about "no bootable device found", make sure the USB drive is fully inserted and try restarting the computer.
If you enter your product key and Windows says it is invalid, check that you typed it correctly — the key is case-insensitive but the hyphens must be in the right places. If the key is correct but Windows still rejects it, the key may have already been used on another computer. You can contact Microsoft support with your proof of purchase to resolve this.
Frequently Asked Questions
Can I install Windows without a product key?
Yes, Windows will install and run without a key, but you will see a watermark on your desktop saying "set up Windows" and you will not be able to personalize your settings. You can enter the key later — Windows will prompt you repeatedly to do so. Eventually, Microsoft may restrict some features, but the operating system will continue to work.
What if I do not have a second computer to create the USB drive?
You can buy a pre-made Windows installation USB drive from retailers like Amazon or Best Buy. These cost $20 to $40 and come with a product key included. Alternatively, if you have access to a library computer or a friend's computer, you can use that to create the bootable USB drive.
Will installing Windows erase my files?
Yes, installing Windows on a drive erases everything on that drive. If you have files you need to keep, back them up to an external drive or cloud storage before you start. If you are installing on a new computer with a blank drive, there is nothing to erase.
How long does the whole process take?
From start to finish, expect 1 to 2 hours. Creating the USB drive takes 10 to 20 minutes, the installation itself takes 20 to 30 minutes, and Windows updates take 1 to 3 hours. The exact time depends on your internet speed and how many updates are available.
Do I need to disconnect other drives while installing Windows?
It is a good idea to disconnect external drives and any internal drives you do not want to install on. This prevents you from accidentally selecting the wrong drive during setup. If you have multiple internal drives and need to keep files on one of them, leave it connected but be very careful to select the correct drive during installation.