LoginSignup
0
1

More than 3 years have passed since last update.

VMwareにWindows10をUSBメモリーからクリーンインストールする

Last updated at Posted at 2019-12-29

VMwareにWindows10をUSBメモリーからクリーンインストールする準備です。
USBメモリーはFAT32でフォーマットされたものを使用します。(exFATとNTFSではダメでした)
USBメモリーはEドライブ、Windows10のISOファイルはDドライブにマウントしています。
FAT32の制限に引っかかるinstall.wimは2GBにファイル分割します。
※USBメモリーは中身を完全削除しますのでご注意願います。(要事前バックアップ)

管理者:コマンドプロンプト
Microsoft Windows [Version 10.0.18363.535]
(c) 2019 Microsoft Corporation. All rights reserved.

C:\Windows\system32>diskpart

Microsoft DiskPart バージョン 10.0.18362.1

Copyright (C) Microsoft Corporation.
コンピューター: Windows-PC

DISKPART> list disk

  ディスク      状態           サイズ   空き   ダイナ GPT
  ###                                          ミック
  ------------  -------------  -------  -------  ---  ---
  ディスク 0    オンライン            60 GB      0 B        *
  ディスク 1    オンライン          7711 MB      0 B

DISKPART> select disk 1

ディスク 1 が選択されました。

DISKPART> clean

DiskPart はディスクを正常にクリーンな状態にしました。

DISKPART> create partition primary

DiskPart は指定したパーティションの作成に成功しました。

DISKPART> list partition

  Partition ###  Type                Size     Offset
  -------------  ------------------  -------  -------
* Partition 1    プライマリ             7710 MB  1024 KB

DISKPART> select partition 1

パーティション 1 が選択されました。

DISKPART> format fs=fat32 quick

  100% 完了しました

DiskPart は、ボリュームのフォーマットを完了しました。

DISKPART> active

DiskPart は現在のパーティションをアクティブとしてマークしました。

DISKPART> exit

DiskPart を終了しています...

C:\Windows\system32>bootsect /nt60 e:
対象のボリュームは BOOTMGR 互換のブートコードで更新されます。

E: (\\?\Volume{…略…})

    FAT32 ファイルシステムのブートコードを正常に更新しました。

すべての対象ボリュームでブートコードが正常に更新されました。

C:\Windows\system32>robocopy /mir /j /a-:rhs /ndl d:\ C:\OS.Windows10
    

C:\Windows\system32>Dism /Split-Image /ImageFile:"C:\OS.Windows10\sources\install.wim" /SWMFile:"C:\OS.Windows10\sources\install.swm" /FileSize:2048

展開イメージのサービスと管理ツール
バージョン: 10.0.18362.1

操作は正常に完了しました。

C:\Windows\system32>dir "C:\OS.Windows10\sources\install*.*"
 ドライブ C のボリューム ラベルは Windows です
 ボリューム シリアル番号は …略… です

 C:\OS.Windows10\sources のディレクトリ

2019/12/29  08:23     2,143,129,256 install.swm
2019/10/07  13:03     4,495,667,552 install.wim
2019/12/29  08:23     2,144,843,620 install2.swm
2019/12/29  08:23       195,431,020 install3.swm
               4 個のファイル       8,979,071,448 バイト
               0 個のディレクトリ  22,916,632,576 バイトの空き領域

C:\Windows\system32>robocopy /e /j /a-:rhs /ndl c:\OS.Windows10 e:\ /xf install.wim
    

C:\Windows\system32>

Windows10Proの無人インストール用Autounattend.xmlのサンプルです。
ハードディスクのみ手動でパーティション設定します。
アクティベーション済み環境用にインストールするプロダクトキーは空欄になっています。
新規環境にテストインストールする際はKMSのものを使うといいでしょう。

Operating system edition KMS Client Setup Key
Windows 10 Professional W269N-WFGWX-YVC9B-4J6C9-T83GX
Windows 10 Professional N MH37W-N47XK-V7XM9-C7227-GCQG9
Windows 10 Enterprise NPPR9-FWDCX-D2C8J-H872K-2YT43
Windows 10 Enterprise N DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4
Windows 10 Education NW6C2-QMPVW-D7KKK-3GKT6-VCFB2
Windows 10 Education N 2WH4N-8QGBV-H22JP-CT43Q-MDWWJ
Windows 10 Enterprise 2015 LTSB WNMTR-4C88C-JK8YV-HQ7T2-76DF9
Windows 10 Enterprise 2015 LTSB N 2F77B-TNFGY-69QQF-B8YKP-D69TJ
Autounattend.xml
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="windowsPE">
        <component name="Microsoft-Windows-International-Core-WinPE" 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">
            <SetupUILanguage>
                <UILanguage>ja-JP</UILanguage>
            </SetupUILanguage>
            <InputLocale>0000045a</InputLocale>
            <SystemLocale>ja-JP</SystemLocale>
            <UILanguage>ja-JP</UILanguage>
            <UserLocale>ja-JP</UserLocale>
        </component>
        <component name="Microsoft-Windows-Setup" 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">
            <ImageInstall>
                <OSImage>
                    <InstallFrom>
                        <MetaData wcm:action="add">
                            <Key>/IMAGE/NAME</Key>
                            <Value>Windows 10 Pro</Value>   <!-- Windows 10 Professional -->
                        </MetaData>
                    </InstallFrom>
                </OSImage>
            </ImageInstall>
            <UserData>
                <ProductKey>
                    <Key></Key>                             <!-- Windows 10 Professional -->
                    <WillShowUI>OnError</WillShowUI>
                </ProductKey>
                <AcceptEula>true</AcceptEula>
                <FullName>VMware User</FullName>
                <Organization>VMware Group</Organization>
            </UserData>
        </component>
    </settings>
    <settings pass="oobeSystem">
        <component name="Microsoft-Windows-Shell-Setup" 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">
            <AutoLogon>
                <Password>
                    <Value></Value>
                    <PlainText>true</PlainText>
                </Password>
                <Enabled>true</Enabled>
                <LogonCount>1</LogonCount>
                <Username>Administrator</Username>
            </AutoLogon>
            <OOBE>
                <HideEULAPage>true</HideEULAPage>
                <ProtectYourPC>1</ProtectYourPC>
                <SkipMachineOOBE>true</SkipMachineOOBE>
                <SkipUserOOBE>false</SkipUserOOBE>
            </OOBE>
            <UserAccounts>
                <AdministratorPassword>
                    <Value></Value>
                    <PlainText>true</PlainText>
                </AdministratorPassword>
            </UserAccounts>
            <TimeZone>Tokyo Standard Time</TimeZone>
        </component>
    </settings>
    <settings pass="specialize">
        <component name="Microsoft-Windows-Security-SPP-UX" 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">
            <SkipAutoActivation>true</SkipAutoActivation>
        </component>
        <component name="Microsoft-Windows-UnattendedJoin" 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">
            <Identification>
                <JoinWorkgroup>VMware</JoinWorkgroup>
            </Identification>
        </component>
        <component name="Microsoft-Windows-Shell-Setup" 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">
            <ComputerName>*</ComputerName>
        </component>
    </settings>
</unattend>
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1