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

Anup ThapaBy Anup ThapaJuly 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 Thapa
  • LinkedIn

Anup Thapa is a tech writer at TechNewsToday. He mostly writes informative articles, tutorials, and troubleshooting guides related to Windows systems, networking, and computer hardware. Anup has been writing professionally for almost 5 years, and tinkering with PCs for much longer. His love for all things tech started when he got his first PC over 15 years ago. It was a Pentium IV system running Windows XP on a single 256 MB stick. He spent his formative years glued to this PC, troubleshooting any hardware or software problems he encountered by himself. Professionally, Anup has had brief forays into a variety of fields like coding, hardware installation, writing, etc. In doing so, he's worked with people of different backgrounds and skill levels, from average joes to industry leaders and experts. This has given him not just a versatile skillset, but also a unique perspective for writing that enables him to concisely communicate complex information and solve his reader's problems efficiently. You can contact him at anup@technewstoday.com

Related Posts

antimalware service executable high memory

Fix: Antimalware Service Executable High Memory

May 18, 2023
windows event logs

How to Check Event Logs on Windows

May 17, 2023
the rpc server is unavailable

Fix: The RPC Server is Unavailable

May 15, 2023
DirectStorage Windows 11

How to Enable DirectStorage on Windows 11

May 15, 2023
audio keeps cutting out

5 Ways to Fix Audio Keeps Cutting Out on Windows 11

May 12, 2023
MBR Error 1 2 3

What is MBR Error 1, 2, 3? 7 Ways to Fix It

May 11, 2023
Add A Comment

Leave A Reply Cancel Reply

Latest Posts
Best-1200W-PSU

8 Best 1200W PSUs for Extreme PC Builds in 2023

May 16, 2023
Best-1000W-PSU

10 Best 1000W PSUs in 2023

May 16, 2023
best-700w-psu

10 Best 700W PSUs for Gaming in 2023

May 14, 2023
You may also like
antimalware service executable high memory

Fix: Antimalware Service Executable High Memory

May 18, 2023
printer-printing-pink

Why is My Printer Printing Pink? 6 Ways to Fix It

May 18, 2023
how to clean usb c port

How to Clean USB-C Port Safely

May 17, 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
  • Our Team
  • Editorial Guidelines
  • Privacy Policy
  • Affiliate Disclosure
© 2023 TechNewsToday, editor@technewstoday.com | Tech Central Pvt. Ltd.

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