User:Insomnia/Sandbox/6
< User:Insomnia | Sandbox(Redirected from User:Someone200/Sandbox/6)
This guide provides steps to install Windows without using the normal setup program (aka the "unintended" method) on Windows 8.1 and later on UEFI systems. Do note that setting up Windows using this method may break the system if the steps weren't followed correctly as it tampers with the registry and the disk.
Disk partitioning & image applying[edit | edit source]
- Boot into the setup media.
- Press Shift+F10 to invoke the Command Prompt.
- Partition the disk (these steps applies to clean disks)[a]
- Type
diskpart
. - Select the preferred disk:
sel dis <disk number>
[b] - Convert the disk to GPT:
conv gpt
- Create boot partition (important)
cre par efi size=<size>
[c]for fs=fat32 quick
assign letter w
- Create install partition:
cre par pri
(usesize=
(in MB) to give it a fixed size or left intact to create based on all of the remaining disk spaces left)for fs=ntfs quick
assign letter c
- Exit DiskPart: type
exit
- Type
- Redirect to the install media:
cd /d D:\Sources
- Apply the installation image - this step is the most important: type
dism /apply-image /imagefile:install.wim /index:<sku> /applydir:C:
and wait[d][e] - Create boot files (important):
bcdboot C:\Windows /s W:
Setting up[edit | edit source]
There are two ways to set up:
- Normal method: Restart the device by using
wpeutil reboot
and go through the OOBE manually - OOBE bypassing method:
- On a Command Prompt window, type
regedit
- Select the
HKEY_LOCAL_MACHINE
key. - Click File > Load Hive
- Go to
C:\Windows\System32\config
, open theSOFTWARE
file and call it "soft", repeat the same step withSYSTEM
file and call it "sys" - Navigate to
HKEY_LOCAL_MACHINE\soft\Microsoft\Windows\CurrentVersion\Policies\System!EnableCursorSurpression
, and set it to 0.[f] - Navigate to
HKEY_LOCAL_MACHINE\sys\Setup!CmdLine
and set it tocmd.exe
. If done correctly, Command Prompt should open in the fake boot screen. - Reboot.
- In the Command Prompt window on the fake boot screen, type
oobe\windeploy
to start the necessary services. - Create an user account:
- Open Registry Editor (by typing
regedit
- Navigate to
HKEY_LOCAL_MACHINE\SYSTEM\Setup
and set theSetupType
,OOBEInProgress
andSystemSetupInProgress
values to 0. - In the Command Prompt window, type
exit
. After that, a "Please wait" screen should show up. Wait for 4-5 minutes in that screen and then reboot. - The system should sign in now. After that, the privacy selection screen will show up. Either complete the steps shown in the screen or disable it through the registry.
- On a Command Prompt window, type
Notes[edit | edit source]
- ↑ If there is a pre-made install partition, after step 3.2 use
sel par <partition number>
(uselis par
to get partition number), skip step 3.3 and 3.5.1, and do step 3.4 later. - ↑ To get disk number, type
lis dis
- ↑ The recommended size is 100 - 500 MB
- ↑ To get the
<sku>
ID, typedism /get-imageinfo /imagefile:install.wim
- ↑ If DISM reports the image was not found, try replacing
install.wim
in each command withinstall.esd
- ↑ This step is to unhide the cursor in the fake boot screen for easier steps performance.
- ↑ Replace
<username>
with the user's preferred username. - ↑ From this step,
<username>
is the username that the user provided when performing the previous step.