In some cases, you may consider installing Windows 10 with Command Prompt. How can you do that? In this post, MiniTool Partition Wizard provides a step-by-step guide on how to install Windows 10 from Command Prompt. You can take a look.
For some reason, you may randomly want to install Windows 10 from Command Prompt. To help you complete this operation, there are two methods available. Just keep reading and pick one according to your needs.
Method 1: Install Windows 10 from CD/DVD Using Command Prompt
If you have a CD/DVD, you can easily learn how to install Windows 10 from Command Prompt with it by following the steps below.
Step 1: Press Windows + R to open the Run dialog.
Step 2: Type cmd in the text box and then press Ctrl + Shift + Enter to open Command Prompt as an administrator.
Step 3: In the elevated Command Prompt, type diskpart and press Enter.
Step 4: After that, type list vol and press Enter to execute this command. It will list all the volumes in your system. You should figure out the correct volume containing the mounted Windows 10 ISO file.
Step 5: Type exit and press Enter to quit Diskpart. Then execute the G:\setup.exe command to open the Windows 10 Setup window.
Step 6: Follow the on-screen instructions to install Windows 10 from Command Prompt.
Method 2: Install Windows 10 from USB Using Command Prompt
In addition to installing Windows 10 from CD/DVD, it’s also a great way to use a USB drive to install Windows 10. Here’s detailed information on how to install Windows 10 from USB using Command Prompt.
Step 1: Connect the prepared USB drive to your PC.
Step 2: Run Command Prompt as an administrator. Then type the following commands one by one and press Enter after each to erase the USB drive.
- diskpart
- list disk
- select disk N (N represents the number of your USB drive)
- clean
Step 3: After cleaning the USB drive, recreate a new partition by running the given commands.
- create partition primary
- select partition X (Replace X with the number of the newly created partition; you can use the list partition command to find the partition number if you are not sure which it is)
- active
- format fs=ntfs quick (You can also format the partition to FAT32 instead of NTFS)
- assign letter=I
Step 4: Once done, exit Diskpart. Then execute these commands so that you can navigate to the mounted ISO image and copy it to the target USB drive.
- G: (G is the drive letter of the drive with the mounted Windows ISO image)
- cd boot
- bootsect /nt60 I: (I refers to your USB drive’s drive letter)
- xcopy G:\*.* I:\ /E /F /H (/E copies all subfolders, /H copies all hidden files, and /F displays all source and destination file names as it’s copying.)
Step 5: Set the USB drive as the first boot option with this guide: How To Change Boot Order Safely On Windows Device. Then reboot your PC from the USB drive and follow the on-screen instructions to install Windows 10.
That’s all about how to install Windows 10 from USB using Command Prompt. You can have a try.
Bonus Tip: Obtain Windows 10 Without Installing OS
From the above, you may learn how to install Windows 10 from Command Prompt. It’s a helpful but time-consuming way. And if you are not familiar with these command lines, you may sometimes feel confused while installing Windows 10 with Command Prompt.
Is there an easier way to get Windows 10 on your computer? Well, to simplify the Windows installation, we’d like to recommend you take advantage of MiniTool Partition Wizard. It’s a professional disk partition software that enables you to migrate OS to SSD without installing the OS.
Therefore, if you have another computer that is running Windows 10 properly, you can try using an SSD drive to transfer the operating system to the target computer with MiniTool Partition Wizard. To do this, you need to get this program installed on the source computer to migrate Windows 10 to SSD. Then connect the SSD with Windows 10 to the target computer.
MiniTool Partition Wizard DemoClick to Download100%Clean & Safe
After reading this post, you may find ways to effectively install Windows 10 from Command Prompt. Besides, you can try getting Windows more quickly and easily with MiniTool Partition Wizard. If you have any problems with Windows installation, you can leave a message in the comment part below.