1. Step: Windows 7 from a USB Stick to boot
In order to start the operating system from a USB Stick (booting), you need to prepare the USB data carrier is initially:
- You start from the start menu and type "diskpart" into the search field.
- With "list disk" can be a Overview of all the data carriers that are connected to the PC.
- Are you looking for the Stick. These you usually find the size. This is marked under "disk" as a "0", enter the command "select disk 0". This selects the Stick now.
- Clean up the disk with "clean" and with "create partition primary" to a new Partition. You turn the last to the Stick with the command "active".
- The Stick must be in the NTFS Format, otherwise it may cause problems when you Start. This is not the case, you can use the command "format format fs=ntfs quick" to the store. Warning: This will erase all the data on the Stick!
- After successful formatting, you need to map the drive with "assign" a drive letter. With "exit" closes the program and you have completed the initial configuration successfully.

 USB Stick to configure
 
2. Step: Windows files copy
Now you can copy the files from Windows 7 to the USB Stick.
- The files of Windows 7 you should remove the Setup DVD. This is no longer you, you can create the so-called "system repair disc".
- To do this, go to the control panel and switch to the "System"settings. Then, you have to change in the "System and security" and "backup your computer".
- Finally, select the top left "create a system repair disc" and follow the instructions in the wizard.
- You have the Setup DVD, or just created a "system repair disk", you need to boot from it. To do so, insert the DVD and restart the PC. Then press any key when prompted.
- Once in the Setup DVD, the window appears with the language selection, press the key combination [SHIFT] and [F10]. A console Administrator is started Right.
- In the "system repair disk" you need to be as long select "More" or "no" or "not Now restart" until you get to the language selection. You press the same key combination [SHIFT] + [F10].
- It is now time to find the correct drive letter for the Windows Partition and the USB Stick. To do this, enter the command "dir c:", the contents of the drive "C" to look at.
- You have found the Windows Partition, as well as the Stick, you can copy it with the command "xcopy d: h: /screeching" the Windows on the Stick. In this example, Windows has the drive letter "D:" and the Stick, the drive letter "H:".
- Then you need to equip the USB-Stick with a so-called boot loader. This is done with the command "bcdboot h:\windows /s h: /l de-de". Here, we refer again to the above-mentioned drive letters. The Option "/s" ensures that the boot loader is on the USB Stick and not mistakenly written to the hard drive.
3. Step one: Registry entries to customize
Attention! Since USB drivers are not yet loaded properly, you should not restart the PC you must adjust the settings in the Registry:
- Open the start menu and type in the search bar "regedit". Then press the [Enter] key.
- Navigate to the "HKEY_LOCAL_MACHINE (HKLM)"key and select "file" the Option "load hive".
- From then on the USB-Stick under "Windows\System32\config" the file "System" and rename it to "USB".
- You switch back to the registry Editor. Look under "HKEY_LOCAL_MACHINE (HKLM)\USB \Select", which is the value under "Current". This is a "1", you need to make all the following Changes under "HKEY_LOCAL_MACHINE (HKLM)\USB\ControlSet001". In the case of a "2" is the path "HKEY_LOCAL_MACHINE (HKLM)\USB\ControlSet002". There are in the folder "Services" to the sub-folder "usbccgp", "usbehci", "USB hub", "usbohci", "USBSTOR" and "usbuhci", you need to make two Changes.
- Change in any sub-folder of the value of the entry "Start" from "0" to "3" and also the entry "Group" of the "Base" on the "system reserved". So they have taken almost all of the settings to be able to Windows 7 from a USB Stick.
- So Windows does not search alternately to the files on the hard disk and the Stick, you need to tell the operating system that the USB Stick is the boot drive "C:". To do this, go into the Registry folder "HKEY_LOCAL_MACHINE (HKLM)\USB\MountedDevices" and replace the "C" from the entry "\DosDevices\C" temporarily with a letter that is not used, for example. "X".
- You can switch back to the Stick. You change the entry (in our example, "H") "\DosDevices\H" to "\DosDevices\C", and in the last step, just set "\DosDevices\X" finally, in "\DosDevices\C". Thus, the USB is detected-drive as "C".
- As a final step, click once again on the key "HKEY_LOCAL_MACHINE (HKLM)\USB" and select under "file" the Option "remove structure". All the settings have been applied to this point and stored.

 Registry entries to customize
 
This practical tip is based on Microsoft Windows 7. A Upgrade from Windows Vista to Windows 7 you can also use a USB Stick to perform.






