What you need before you start
Installing Windows on a new computer requires three things: a Windows installation file (usually on a USB drive), a product key or digital license tied to your Microsoft account, and another computer to create the installation media if your new machine has no operating system yet. If your new computer came with Windows already installed, you do not need to do this — skip to checking your license instead.
The product key is a 25-character code that proves you own a Windows license. It comes with a physical Windows package, in a confirmation email if you bought Windows online, or embedded in your computer's firmware if it came pre-installed. You will need this key during setup, though some newer computers skip this step if your license is already registered to your Microsoft account.
If you are starting from scratch, you will also need a USB drive with at least 8 GB of storage space. This drive will hold the Windows installation files and can be erased during the process, so use one that does not contain anything you need to keep.
Key Takeaways
- You need a Windows product key, a USB drive with 8 GB or more storage, and access to another computer to create the installation media.
- Download the Windows installation tool from Microsoft's website on a working computer, then run it to create a bootable USB drive.
- Insert the USB drive into your new computer, restart it, and press the key shown on screen (usually F12, Del, or Esc) to boot from the USB instead of the hard drive.
- Follow the Windows Setup wizard to choose your language, enter your product key, and select where to install Windows on your hard drive.
- After installation finishes, connect to the internet and sign in with your Microsoft account so Windows can activate your license.
Creating the Windows installation media on another computer
Go to Microsoft's Windows download page on a computer that already has internet access. You will see options for different Windows versions — Windows 11 is the current version, but your product key may be for Windows 10 or an older release. Download the version that matches your license.
Click the button to download the Media Creation Tool, a small program that downloads the full Windows files and prepares your USB drive. Run this tool, accept the license terms, and choose "Create installation media for another PC." Plug in your USB drive when prompted. The tool will erase it and copy the Windows installation files, which takes 10 to 20 minutes depending on your internet speed.
When the tool finishes, safely eject the USB drive from the computer you used to create it. This drive is now ready to use on your new computer.
Booting from the USB drive on your new computer
Plug the USB drive into a USB port on your new computer. Restart the computer completely — do not just wake it from sleep. As it powers back on, watch the screen for a message that says "Press [key] to enter Setup" or "Press [key] to choose boot device." The key varies by manufacturer: common ones are F12, F2, Del, Esc, or F10. You may need to press it several times in quick succession.
If you miss the window and Windows starts to load from the hard drive, restart again and try pressing the key earlier. Some computers show this message for only a few seconds. If you are unsure which key to press, look up your computer's model number online — the manufacturer's support page lists the correct key.
Once you press the right key, a menu appears showing your boot options. Select the USB drive from this list. The computer will restart and load Windows Setup from the USB drive instead of from the hard drive.
Walking through the Windows Setup wizard
Windows Setup will ask you to choose your language, time zone, and keyboard layout. These are straightforward — pick the options that match where you are and what language you use. Click Next to move through each screen.
When Setup asks where to install Windows, you will see a list of hard drives or partitions on your computer. If this is a brand-new computer with an empty hard drive, you will see one large unallocated space. Click on it and then click Next. Setup will format the drive and begin copying Windows files, which takes 10 to 15 minutes.
Your computer will restart several times during this process. Do not unplug it or turn it off — let Setup finish on its own. After the final restart, you will see a screen asking you to sign in.
Signing in and activating your license
Windows will ask you to sign in with a Microsoft account. Use the email address and password for the Microsoft account that your Windows license is registered to. If you do not have a Microsoft account yet, you can create one during this step — just click the link that says "Create one."
After you sign in, Windows will check your license. If your product key is already registered to your Microsoft account, Windows will activate automatically without asking you to enter the key again. If it is not registered, Windows will ask you to enter your 25-character product key.
Once Windows activates, you will see the desktop. Connect to your internet (either by plugging in an ethernet cable or joining your Wi-Fi network), and Windows will download and install drivers for your hardware. This can take 15 minutes to an hour depending on your internet speed and how many drivers your computer needs.
What to do if Windows does not activate
If you enter your product key and Windows says it is invalid or already in use, the key may be tied to a different computer or account. Check your purchase confirmation email or the packaging the key came in to make sure you are entering it correctly — product keys are case-sensitive and easy to mistype.
If the key is correct but Windows still will not activate, wait 24 hours and try again. Sometimes activation servers take time to process new licenses. If it still does not work after a day, you can contact Microsoft Support through the Settings app: go to Settings > System > About, scroll down to "Related links," and click "Troubleshoot activation." Microsoft can verify your license and help you activate manually.
In the meantime, Windows will still work — you will just see a watermark on your desktop saying "Activate Windows" and you will not be able to change your background or theme colors. These restrictions lift as soon as activation succeeds.
Checking if your new computer came with Windows pre-installed
If your new computer arrived with Windows already running, you do not need to install it yourself. Instead, check that your license is properly registered. Go to Settings > System > About and look for a line that says "Activation status." If it says "Windows is activated," your license is already set up and you are done.
If it says "Activate Windows," click that button and sign in with your Microsoft account. Windows will activate automatically if your license is registered to that account. If you see an error, you may need to enter your product key — it should be on a sticker on the back or bottom of your computer, or in the documentation that came with it.
Frequently Asked Questions
Can I install Windows from a DVD instead of a USB drive?
Yes, if your computer has a DVD drive. Use the Media Creation Tool to download the Windows files, then burn them to a DVD instead of a USB drive. The rest of the process is the same — insert the DVD, boot from it, and follow the Setup wizard. USB drives are faster, but DVDs work if that is what you have available.
What if my computer does not have a USB port?
Older computers sometimes lack USB ports, but nearly all computers made in the last 15 years have at least one. If your computer truly has no USB ports, you can use an external USB hub (a small device that plugs into your computer and adds extra USB ports) or install Windows from a DVD. Contact your computer's manufacturer if you are unsure which option will work.
Do I need internet during the Windows installation?
No, you can complete the installation without internet. However, you will need internet afterward to activate your license and download drivers. If you do not have internet at home, you can use a phone hotspot, a library connection, or a friend's Wi-Fi to activate and download drivers after setup finishes.
Can I use the same USB drive to install Windows on multiple computers?
Yes. The USB drive holds the Windows installation files, not your license. You can use the same drive to install Windows on as many computers as you want. Each computer will need its own product key to activate, but the installation media itself can be reused.
What happens to my files if I install Windows on a computer that already has an operating system?
Windows Setup will ask whether you want to keep your existing files or erase the drive. If you choose to erase it, everything on that drive will be deleted permanently. If you choose to keep files, Windows will move them to a folder called Windows.old so you can retrieve them later. Always back up important files before installing Windows on a computer that already has data on it.