Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
    • Linux
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Facebook Twitter Instagram
Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
    • Linux
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Tech News Today
Home»Windows»How To Install Windows To External Hard Drive

How To Install Windows To External Hard Drive

AnupBy AnupJuly 30, 2022
How To Install Windows To External Hard Drive

Installing Windows to an external hard drive is a bit different from installing it to an internal one. If you follow the conventional steps, you’ll encounter the error “You can’t install Windows on a USB Flash Drive using Setup.”

Microsoft did have a tool called Windows To Go (WTG) for creating portable workspaces, but it had a lot of limitations. For instance, it only supported USB drives certified for Windows To Go, external USB Hubs were not supported, and Windows To Go installations didn’t support feature updates either.

As such, Windows To Go was deprecated in Windows 10 Version 1903. You can still use it to install older Windows versions, but this is generally not a good idea from a long-term perspective.

If you want to install newer Windows versions to external hard drives without any limitations, Rufus is a great free and open-source option.

Table of Contents

  • Install Windows with Rufus
  • Install Windows with Windows To Go
    • WTG Creator Wizard
    • CLI Method

Install Windows with Rufus

Rufus is generally used to create bootable USB drives, which in turn are used to install the OS onto internal hard drives. In this case, though, we’re using it for something unconventional, i.e., installing Windows onto an external hard drive.

Aside from selecting the Windows To Go option during the initial phase, the rest of the process is mostly the same. Here are the full steps:

  1. Download and install a stable Rufus version if you haven’t already.
  2. Connect the hard drive to your PC.
  3. Launch Rufus and select the hard drive in the device section.
    rufus-windows-to-go
  4. Click on the SELECT button and locate the Windows ISO.
  5. Under Image Option, select Windows To Go.
  6. Select the Windows version you want to install.
    windows-11-versions
  7. Enable the Prevent Windows To Go from accessing internal disks option.
    prevent-windows-to-go-from-accessing-internal-disks
  8. In the case of Windows 11, you can remove the requirements if necessary.
  9. Accept the confirmation prompt to proceed with the installation. The Windows To Go media creation will take a while. Make sure the process isn’t interrupted, as that could leave the drive in an unusable state.
    applying-windows-image
  10. After the process is complete, restart your PC and press the BIOS key (Del or Fn keys).
  11. Depending on the BIOS interface, you can change the boot order or directly select the device to boot from (the USB hard drive in this case). Afterward, press F10 to save the changes and exit.
  12. Upon restarting, you’ll boot to the hard drive. Configure the keyboard layout, privacy choices, and other settings as you prefer to complete the setup process.

Install Windows with Windows To Go

As stated, the Windows To Go feature is mostly deprecated now due to its various limitations. However, if you want to use this anyway on older systems, there are a few things to keep in mind.

First, unlike Rufus, the hard drive needs to be a Certified WTG USB drive. This should be the only USB drive connected to your PC during the installation. Next, the Windows Image (WIM) file that you use should contain a valid Enterprise sysprep generalized image.

WTG Creator Wizard

With that said, the steps to use the Windows To Go creator wizard are listed below. As this wizard is only available on Windows 8 Enterprise clients, you can follow the command-line method listed further below in the case of other systems.

  1. Press Win + S, type Windows To Go, and press Enter.
  2. Select the USB drive on the choose drive page.
    create-a-windows-to-go-workspace
  3. In the choose image page, click on Add Search Location.
    choose-a-windows-image
  4. Navigate to the image’s location, and press Create. Optionally, you can also use BitLocker to encrypt the drive if you want.
  5. The creation process can take upwards of half an hour. After it’s complete, reboot your PC and access the BIOS Setup Utility.
  6. Change the boot order to boot to the USB.
  7. Upon booting to the USB, configure the privacy and other settings to your preference to complete the setup.

CLI Method

The command-line method uses PowerShell to perform essentially the same steps as above. First, we select the USB drive, clear all data from it, and initialize it as an MBR disk. Next, we create a system partition, format the volume as FAT32, and set up the volume for use by assigning it a drive letter. Here are the initial steps for all of this:

First, ensure that only the intended USB drive is connected to your PC. Press Win + R, type powershell, and press CTRL + Shift + Enter. Then, execute the following commands one by one in Powershell:

$Disk = Get-Disk | Where-Object {$_.Path -match "USBSTOR" -and $_.Size -gt 20Gb -and -not $_.IsBoot }

Clear-Disk –InputObject $Disk[0] -RemoveData

Initialize-Disk –InputObject $Disk[0] -PartitionStyle MBR

$SystemPartition = New-Partition –InputObject $Disk[0] -Size (350MB) -IsActive

Format-Volume -NewFileSystemLabel "UFD-System" -FileSystem FAT32 ` -Partition $SystemPartition

$OSPartition = New-Partition –InputObject $Disk[0] -UseMaximumSize

Format-Volume -NewFileSystemLabel "UFD-Windows" -FileSystem NTFS ` -Partition $OSPartition

Set-Partition -InputObject $SystemPartition -NewDriveLetter "S"

Set-Partition -InputObject $OSPartition -NewDriveLetter "W"

Set-Partition -InputObject $OSPartition -NoDefaultDriveLetter $TRUE

After the initial procedure is complete, use DISM to apply the OS image onto the system partition as such:
dism /apply-image /imagefile:n:\imagefolder\deploymentimages\mywtgimage.WIM /index:1 /applydir:W:\

Next, use bcdboot to move the necessary boot files to the system partition as such:
W:\Windows\System32\bcdboot W:\Windows /f ALL /s S:

The process is mostly complete, but we’ll need to create a couple of XML files before we’re done. First, create a san_policy.xml file with the following content:

<?xml version='1.0' encoding='utf-8' standalone='yes'?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
  <settings pass="offlineServicing">
    <component
        xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        language="neutral"
        name="Microsoft-Windows-PartitionManager"
        processorArchitecture="x86"
        publicKeyToken="31bf3856ad364e35"
        versionScope="nonSxS"
        >
      <SanPolicy>4</SanPolicy>
    </component>
    <component
        xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        language="neutral"
        name="Microsoft-Windows-PartitionManager"
        processorArchitecture="amd64"
        publicKeyToken="31bf3856ad364e35"
        versionScope="nonSxS"
        >
      <SanPolicy>4</SanPolicy>
    </component>
  </settings>
</unattend>

Navigate to the root directory of the Windows partition on the WTG drive and save this san_policy.xml file there. Then, execute the following command:
Dism.exe /Image:W:\ /Apply-Unattend:W:\san_policy.xml

Next, create an unattend.xml file with the following content:

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="oobeSystem">
        <component name="Microsoft-Windows-WinRE-RecoveryAgent"
          processorArchitecture="x86"
          publicKeyToken="31bf3856ad364e35" language="neutral"
          versionScope="nonSxS"
          xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <UninstallWindowsRE>true</UninstallWindowsRE>
        </component>
        <component name="Microsoft-Windows-WinRE-RecoveryAgent"
          processorArchitecture="amd64"
          publicKeyToken="31bf3856ad364e35" language="neutral"
          versionScope="nonSxS"
          xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <UninstallWindowsRE>true</UninstallWindowsRE>
        </component>
    </settings> 
</unattend>

Save and copy this unattend.xml file into the sysprep folder. Its location will generally be W:\Windows\System32\sysprep\.

Do note that there might be a temporary unattend file in the %systemroot%\panther folder. If there is, you should replace the previous version with the one you just created.

Once all of this is done, all that remains is to reboot your PC, boot into the USB, and complete the setup process.

how-to
Anup

Anup has been tinkering with PCs for over 15 years and writing professionally for almost 5. At Tech News Today, he mainly covers Windows systems, Linux, networking, and hardware-related topics.

Related Posts

start menu wont open

Start Menu Won’t Open? 7 Ways to Fix it

January 13, 2023
motherboard-audio-not-working

Motherboard Audio Not Working? Try These Fixes

January 13, 2023
empty recycle bin for all users

How to Empty Recycle Bin for All Users on Windows

January 10, 2023
how-to-stop-screen-from-turning-off

How to Keep Your Stay Screen On for Longer Time

January 9, 2023
hdmi-laptop-to-displayport-monitor

How to Connect HDMI Laptop to DisplayPort Monitor

January 4, 2023
how to make windows 10 faster

12 Ways How You Can Make Windows 10 Faster

January 4, 2023
Add A Comment

Leave A Reply Cancel Reply

Latest Posts
what is ghost of tsushima legends

What is the Ghost of Tsushima Legends Mode

January 12, 2023
raid 5 vs raid 10

RAID 5 Vs RAID 10 – Which One Is Better?

January 12, 2023
best-tv-settings-for-gaming

Best TV Settings for Gaming

January 9, 2023
You may also like
tv-screen-goes-black-randomly

TV Screen Goes Black Randomly? Try These 11 Fixes

January 15, 2023
how to find unique values in excel

How to Find Unique Values in Excel

January 15, 2023
how-to-open-and-use-chrome-settings

How to Open and Use Chrome Settings

January 16, 2023
Recommended
Cookie Clicker Garden Guide

Cookie Clicker Garden Guide to Unlocking Every Seed

September 26, 2021
monitor no signal

Computer Turns On But Monitor Says No Signal (9 Ways To Fix)

November 10, 2022
Facebook Twitter Pinterest
  • Home
  • About Us
  • Editorial Guidelines
  • Fact-Checking Policy
  • Privacy Policy
  • Affiliate Disclosure
© 2023 TechNewsToday.

Type above and press Enter to search. Press Esc to cancel.