---
# System prepended metadata

title: Windowsをインストールする
tags: [環境構築]

---

---
tags: 環境構築
---

# Windowsをインストールする

https://youtu.be/QXlKVmIeUCM

## diskpart

```
> sel disk 0
> sel par 0
> assign letter W
```

## wim

```
> dism /get-wiminfo /wimfile:D:\PathTo\install.wim
> dism /apply-image /imagefile:D:\ParhTo\install.wim /index:114514 /applydir:C:\
```

## efi

```
> bootrec /scanos
> bcdboot C:\Windows /s W:
```

## regedit

- `SOFT\Microsoft\Windows\CurrentVersion\Policies\System\VerboseStatus`(DWORD) = `1`
- `SOFT\Microsoft\Windows\CurrentVersion\Policies\System\EnableCursorSuppression`(DWORD) = `0`
- `SYS\Setup\CmdLine`(String) = `cmd.exe`

```
> wpeutil reboot
---
> oobe\windeploy
> net user /add User
> net localgroup /add Administrators User
> net localgroup /add Users User
```

- `SYSTEM\Setup\CmdLine`(String) = `0`
- `SYSTEM\Setup\OOBEInProgress`(DWORD) = `0`
- `SYSTEM\Setup\SetupPhase`(DWORD) = `0`
- `SYSTEM\Setup\SetupSupported`(DWORD) = `0`
- `SYSTEM\Setup\SetupType`(DWORD) = `0`
- `SYSTEM\Setup\SystemSetupInProgress`(DWORD) = `0`

```
> taskmgr (kill winlogon.exe)
```

## UTC

- `HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation\RealTimeIsUniversal`(DWORD) = `1`

## Seconds

- `HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced` `ShowSecondsInSystemClock`(DWORD) = `1`