
Running Windows 8 from a USB should not be confused with installing Windows on a USB drive–in this case, instead of installing it on the drive, we’re just running it straight from the portable drive. Here’s how to do it.
從USB運行Windows 8不應與在USB驅動器上安裝Windows混淆–在這種情況下,我們不是直接在便攜式驅動器上運行它,而是在驅動器上安裝Windows 8。 這是操作方法。
This is actually a new feature in Windows 8 called Windows To Go, but if you have been using the Windows 8 Developer Preview you will know that the binaries were removed for this release. The feature which will use a wizard called the Portable Workspace creator relies on existing Windows Deployment technologies, most notably imagex.exe which is a tool used to manage .WIM files. In order to do this there is a few things we need:
這實際上是Windows 8中稱為Windows To Go的一項新功能,但是如果您一直在使用Windows 8 Developer Preview,則會知道該版本的二進制文件已被刪除。 該功能將使用一個稱為“便攜式工作區”創建器的向導,該功能依賴于現有的Windows部署技術,最著名的是imagex.exe,它是用于管理.WIM文件的工具。 為了做到這一點,我們需要做一些事情:
- A bootable Windows 8 PC (You can also use a Virtual Machine) 可啟動的Windows 8 PC(您也可以使用虛擬機)
- A USB 3.0 16GB USB (This will work on a USB 2.0 but might appear to be a bit slow) USB 3.0 16GB USB(這可以在USB 2.0上使用,但可能看起來有點慢)
- A Windows 8 ISO File or DVD Windows 8 ISO文件或DVD
- An active internet connection (To download the WAIK) 活躍的互聯網連接(下載WAIK)
So grab those few things and a hot cup of coffee and lets get started, at this point you should have your Windows 8 PC booted up and your USB connected.
因此,抓住這些東西和一杯熱咖啡,開始吧,這時,您應該啟動Windows 8 PC并連接USB。
威克 (WAIK)
As mentioned are going to have to obtain a copy of imagex.exe, luckily for us it is distributed as part of the WAIK (Windows Automated Installation Kit) which can be downloaded from the Microsoft website.
如前所述,必須獲得imagex.exe的副本,幸運的是,它作為WAIK(Windows自動安裝工具包)的一部分分發,可以從Microsoft網站下載該文件。
Note: The download is just under 1.7GB so if you have a slow internet line you might be waiting for a while.
注意:下載空間不到1.7GB,因此,如果您的互聯網線路速度較慢,則可能需要等待一段時間。
Once the download has completed this will need to be installed on your Windows 8 PC, the install is just of the next, next, finish type and doesn’t require any thinking.
下載完成后,需要將其安裝在Windows 8 PC上,該安裝僅是下一,下一,完成類型,不需要任何考慮。


Once the WAIK has finished installing if you are running a 32-Bit version of the Developer Preview navigate to C:\Program Files\Windows AIK\Tools\x86 and send imagex.exe to the root of drive C:\
如果您正在運行32位版本的Developer Preview,則在WAIK完成安裝后,導航至C:\ Program Files \ Windows AIK \ Tools \ x86并將imagex.exe發送到驅動器C:\的根目錄
If you are running a 64-Bit installation you need to navigate to C:\Program Files\Windows AIK\Tools\amd64 and send imagex.exe it to the root of the C:\ drive.
如果運行的是64位安裝,則需要導航到C:\ Program Files \ Windows AIK \ Tools \ amd64并將imagex.exe發送到C:\驅動器的根目錄。

創建USB (Creating The USB)
At this point you need to either insert the Windows 8 DVD or mount the Windows 8 ISO file, by right clicking on it and choosing Mount. Switch to the Windows 8 Start screen then type CMD and press Ctrl + Shift + Enter to run a Command Prompt with administrative rights.
此時,您需要插入Windows 8 DVD或掛載Windows 8 ISO文件,方法是右鍵單擊它并選擇“掛載”。 切換到Windows 8“開始”屏幕,然后鍵入CMD,然后按Ctrl + Shift + Enter運行具有管理權限的命令提示符。

Now type the following commands into the command Window:
現在,在命令窗口中鍵入以下命令:
Diskpart List Disk
磁盤部分列表磁盤

Then run the following commands
然后運行以下命令
Select Disk 2 (Replace Disk 2 with whatever number you USB Disk is, seen above) Clean Create Partition Primary Select Partition 1 Active Format FS=NTFS Quick Assign Exit
選擇磁盤2 (用您的USB磁盤號替換磁盤2,如上所示)清潔創建分區主分區選擇分區1活動格式FS = NTFS快速分配退出

Type Exit to leave Diskpart, but keep the command Window open.
鍵入Exit退出Diskpart,但保持命令窗口打開。

Now type the following command
現在鍵入以下命令
C:\imagex.exe /apply D:\sources\install.wim 1 H:\
C:\ imagex.exe / apply D:\ sources \ install.wim 1 H:\
Note: Substitute the D:\ for the drive letter that your Windows 8 DVD is in and the H:\ for the drive letter of your USB.
注意:將D:\替換為Windows 8 DVD所在的驅動器號,并將H:\替換為USB的驅動器號。

Now drink what is left of your coffee as you wait Windows to expand the WIM file onto your USB. Once its done, a success message will be displayed. The only thing left to do is to copy the files needed to make the USB bootable to the flash drive. To do this run the following command.
現在,當您等待Windows將WIM文件擴展到USB上時,請喝咖啡中剩下的東西。 完成后,將顯示成功消息。 剩下要做的唯一一件事就是將使USB可啟動的文件復制到閃存驅動器。 為此,請運行以下命令。
bcdboot.exe H:\windows /s H: /f ALL
bcdboot.exe H:\ windows / s H:/ f全部

That’s all there is to it, now you have a fully functioning installation of Windows 8 Developer Preview running from your USB. The first time you boot from the USB, Windows will install all the drivers you need for the PC you booted on.
這就是全部,現在您已經可以通過USB運行功能完整的Windows 8 Developer Preview安裝。 第一次從USB啟動時,Windows將安裝啟動PC所需的所有驅動程序。
Note: Just as a side note the final version of the Portable Workspace creator will let you clone your entire Windows machine (Programs, Customizations, Settings) to a flash drive, using the above method you will have a clean installation of Windows 8 running from a USB, your programs will NOT be transferred as we are applying the stock Windows 8 Developer Preview WIM to a flash drive, rather than cloning your existing installation.
注意:順便說一句,Portable Workspace Creator的最終版本將使您可以將整個Windows計算機(程序,自定義設置,設置)克隆到閃存驅動器,使用上述方法,您將全新安裝Windows 8, USB,您的程序將不會被傳輸,因為我們將庫存的Windows 8 Developer Preview WIM應用于閃存驅動器,而不是克隆現有安裝。
Thanks to Windows8Italia for pointing this out.
感謝Windows8Italia指出這一點。
翻譯自: https://www.howtogeek.com/98296/how-to-run-windows-8-developer-preview-from-a-usb/