windows adk によるイメージの作成手順
TRANSCRIPT
Windows ADK Windows 10 Windows Server 2012 R2
: 2016 2
Microsoft Corporation 2015Microsoft Corporation. All rights reserved. MicrosoftWindowsWindows Windows Server Microsoft Corporation
// //
1.0201621
Windows ADK
20145
- 4 -
4 5 1. 7 1-1 Windows ADK 7 1-2 Windows PE 9 1-3 11 2. 16 2-1 Windows 10 16 2-2 Windows 18 2-3 Windows 10 OOBE 25 2-4 Windows Update 27 2-5 29 2-6 35 2-7 Sysprep 38 3. 41 4. 45 4-1 45 4-2 5153Appendix54A.1. 54 A.1-1 54 A.1-2 54 A.1-3 55 A.1-4 56 A.1-5 WIM 57A.2. 59A.3. IE63A.4. Windows RE67 A.4-1 WindowsRE67 A.4-2 PC75
Windows 10Windows 10Windows & (Windows ADK) Windows ADK Windows 10
Windows ADK for Windows 10 Windows (ICD)wimffu(ppkg)
Windows ADK Windows WDS System Center Configuration Manager (SCCM)
Windows ADK
1.
IT Windows ADK
Windows & (Windows ADK)
Windows PE
2.
2 OS
Windows 10
Windows
Windows 10 OOBE
Windows Update
Sysprep
3.
3 2 Windows PE DISM 3
DISM
4.
DISM 5
DISM
1.
IT Windows ADK
Windows 10 Enterprise
1-1 Windows ADK
Windows & (Windows ADK)
Windows 10 Windows & (Windows ADK)
Windows 10
https://msdn.microsoft.com/ja-jp/windows/hardware/dn913721.aspx
Windows 10 Enterprise
1.
1.
https://msdn.microsoft.com/ja-jp/windows/hardware/dn913721.aspx
[ Windows ]
[Windows ADK for Windows 10 ]
Web
[adksetup.exe]
[]
[][]
[Windows][]
[] []
[]
Deployment Tools
Windows Preinstallation Environment (Windows PE)
(ICD)
User State Migration Tool (USMT)
[Windows][Windows]
[]
[ ]
[]
[Windows-Windows10]
[]
[] - [] - [Windows Kits] - [Windows ] - [Windows ] - [ ]
1-2 Windows PE
Windows ADK Windows PE
DVD 1 4
USB 125
1. [] - [] - [Windows Kits] - [ ]
[ ] Windows PE C:\winpe_amd64
copype amd64 C:\winpe_amd64
32 Windows PE 32 Windows PE C:\winpe_x86
copype x86 C:\winpe_x86
ISO
MakeWinPEMedia /ISO C:\winpe_amd64 C:\winpe_amd64\winpe.iso
1
32 Windows PE ISO
MakeWinPEMedia /ISO C:\winpe_x86 C:\winpe_x86\winpe.iso
1
DVD
Windows C:\winpe_amd64 winpe.iso [ ] DVD
USB Windows PE USB USB F:
MakeWinPEMedia /UFD C:\winpe_amd64 F:
1-3
Windows (Sysprep)
(CopyProfileunattend.xml) Sysprep
1.
DVD Windows 10 DVD
Sysprep Windows 10 DVD 32 32 Windows 10 64 64 Windows 10
Windows 10 Enterprise DVD
DVD Sources Install.wim
[] - [] - [Windows Kits] [Windows ]
[Windows ]
[] [Windows ]
[Windows ] Windows (Install.wim) []
[Windows System Image Manager] []
[Windows ] Windows 10 Enterprise
[] []
[]
[Windows ] [amd64_Microsoft-Windows-Shell-Setup_10.0.10586.0_neutral] [4 specialize]
Note
(10.0.10586.0)1OS
[] [Components] - [4 specialize] [amd64_Microsoft-Windows-Shell-Setup_neutral]
[] [Components] - [4 specialize] - [amd64_Microsoft-Windows-Shell-Setup_neutral] [] [CopyProfile] [true]
[]
CopyProfileunattend.xml C:\Unattend USB
Note
2-7 [Sysprep ]
2.
2
Windows 10
Windows 10 Enterprise
2-1 Windows 10
Windows 10 Enterprise
1. Windows 10 DVD DVD
Note
USB
Windows 10
https://www.microsoft.com/ja-jp/evalcenter/evaluate-windows-10-enterprise
Windows 10 DVD []
[] Windows 10
[] [] []
[] [: Windows ]
[] [] [ ]
[] Windows 10
OOBE
2-2 Windows
Windows
24
DISM PowerShell
Sysprep OOBE
Microsoft Visual Studio 2015 for Windows
Microsoft Visual Studio 2015 for Windows
Windows 10 Windows
https://msdn.microsoft.com/ja-jp/library/hh454036.aspx
Microsoft Visual Studio 2015 for Windows
https://www.visualstudio.com/downloads/download-visual-studio-vs
Note
Windows StoreAppx
Windows Store for Business
https://www.microsoft.com/en-us/business-store
https://technet.microsoft.com/en-us/library/mt606938%28v=vs.85%29.aspx
C:\ App1_1.0.0.0_AnyCPU_Debug
1. Windows 10 OOBE [Ctrl][Shift][F3]
Administrator
[Windows][R][]gpedit.msc[OK]
[ ] [\\\Windows \ ] []
[] [] [OK]
[ ] [] [] [ ]
[] App1_1.0.0.0_AnyCPU_Debug.cer
[ ]
[ ]
[]
[] [] []
[] [] [OK]
[] []
[]
[OK]
[]
7
App1_1.0.0.0_AnyCPU_Debug.cer
[ ]
[ ]
[]
[] [] []
[] [] [OK]
[] []
[]
[OK]
[Windows][R][]powershell[OK]
PowerShell
DISM /Online /Add-ProvisionedAppxPackage /PackagePath:C:\App1_1.0.0.0_AnyCPU_Debug\App1_1.0.0.0_AnyCPU_Debug.appx /SkipLicense
1
[PowerShell]
[Windows][R][]eventvwr[OK]
[ ] [Microsoft\Windows\AppxPackagingOM\Microsoft-Windows-AppxPackaging/Operational]
[ ]
[ (Sysprep)] "C:\Windows\System32\Sysprep\sysprep.exe"
[ ] [OOBE (Out-of-Box Experience) ] [ ] [] [OK]
Sysprep
2-3 Windows 10 OOBE
OOBE Windows
1. [] []
Note
2-2 [][] 3[]
1. [] []
Note
2-2
[] [] []
5
6
Note
PC
[]
Office365Microsoft[Azure AD ]
PC[]
[]
[PC] []
: LocalAdmin
: Pa$$w0rd
: Pa$$w0rd
:
2-4 Windows Update
Windows 10 Windows Update Windows Update
Windows Update
1. [Cortana]Windows Update
1. [Windows Update ]
[Windows Update] []
[]
2-5
Office 365 Pro Plus
Office 365 ProPlus Office Office Office 365 ProPlus Office Office 365 ProPlus
Office
Office 2013 Deployment Tool for Click-to-Run
https://www.microsoft.com/en-us/download/details.aspx?id=36778
Note
Office 365 ProPlus
Office 365 ProPlus Office configuration.xml Cofiguration
Level None
(\\Tec-PC\)Office
1.
1.
C:\Office15
https://www.microsoft.com/en-us/download/details.aspx?id=36778
[Download]
[officedeploymenttool_x85_4747.exe]
[]
[ ]
[]
[Click here to accept the Microsoft Software License Terms.][Continue]
[][OK]
2C:\Office15
[Files extracted successfully][OK]
C:\Office152
configuration.xml
setup.exe
[Cortana]notepad
1. []
1. [] - [] C:\Office15 Configuration.xml
Configuration.xml
Configuration.xml
Customconfigfile.xml
Customconfigfile.xml:
Configuration.xml 32 Office 365 ProPlus C:\Office15
[Cortana]cmd
[ ][]
[ ] []
C:\Office15\setup.exe /download C:\Office15\Customconfigfile.xml
1
C:\Office15 Office Configuration.xml
1.
: LocalAdmin
: Pa$$w0rd
[] - [] \\Tec-PC\\Office15 Configuration.xml
Configuration.xml
Configuration.xml
Deployconfigfile.xml
Deployconfigfile.xml:
Configuration.xml \\Tec-PC\Office15 32 Office 365 ProPlus
Office 365 ProPlus
\\Tec-PC\Office15\setup.exe /configure \\Tec-PC\Office15\Deployconfigfile.xml
1
[]Microsoft Office
Office 365 ProPlus ospp.vbs Office 365 ProPlus
cscript.exe "%programfiles%\Microsoft Office\Office15\ospp.vbs" /dstatus
1
ospp.vbs 32 64 Office 365 ProPlus 32 64
2-6
() Windows
Windows
Windows 10
()
Internet Explorer ()
()
()
()
Internet Explorer
1.
[]
[] [][]
[Windows] [Windows 10]
[ ]
[ ] [] [] [OK]
[] []
[Internet Explorer] [] - [] - [Windows ] [Internet Explorer]
[ ]
[] URL [OK]
[] []
Microsoft Edge
Cortana
Skype
OneNote
2-7 Sysprep
Sysprep Windows 10 /mode:vm /mode:vm /generalize ()
Note
/mode:vm
sysprep
1.
Sysprep C:\Windows\System32\sysprep CopyProfileunattend.xml
[Cortana]cmd
[ ][]
[ ] []
cd \Windows\System32\sysprep
Sysprep /generalize /oobe /shutdown /unattend: CopyProfileunattend.xml
1
/ 1 /unattend:CopyProfileunattend.xml
Sysprep
Sysprep
Note
Windows Sysprep Windows
3.
3 2 Windows PE DISM
OS CD DVDUSB Windows PE DVD Windows PE
Windows 10 Windows ADK DISM DISM
1. Windows PE Windows PE
Note
Windows PE DVD USB BIOS
Windows PE [ ]
DISKPART
LIST DISK
Windows 1 Windows Windows 0
SELECT DISK 0
LIST VOLUME
Windows D
EXIT DISKPART
DISM
Windows : D:\
WIM : CompanyImage.wim
: Company Windows 10 Image
Dism /Capture-Image /ImageFile:D:\CompanyImage.wim /CaptureDir:D:\ /Compress:fast /CheckIntegrity /Name:"Company Windows 10 Image" /Description: "x64 Enterprise"
1
/ 1
Note
powercfg /s 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
WIM
Windows PE
: Tec-pc ()
: Images
IP: 192.168.1.30
255.255.255.0
netsh interface ip set address "ethernet" static 192.168.1.30 255.255.255.0
net use n: \\Tec-PC\Images
copy D:\CompanyImage.wim n:\
1
Note
Tec-pc Images
Note
USB USB
Windows PE
exit
4.
Windows (WDS)
Microsoft Deployment Toolkit 2013 (MDT)
System Center 2012 R2 Configuration Manager (SCCM)
WIM
DISM
4-1
1. Windows PE Windows PE
DISKPART
BIOS :
S: 100MB
W: Windows
S:
W:
Windows
UEFI :
S: 100MB (FAT32)
: Microsoft (MSR) 16MB
W: Windows
R: 300MB
S:
MSR
W:Windows
R:
Note
Windows (winre.wim 250 300 MB )
DISKPART
BIOS :
select disk 0
clean
create partition primary size=100
format quick fs=ntfs label="System"
assign letter="S"
active
create partition primary
format quick fs=ntfs label="Windows"
assign letter="W"
exit
UEFI :
select disk 0
clean
convert gpt
create partition efi size=100
format quick fs=fat32 label="System"
assign letter="S"
create partition msr size=16
create partition primary
shrink minimum=300
format quick fs=ntfs label="Windows"
assign letter="W"
create partition primary
format quick fs=ntfs label="Recovery tools"
assign letter="R"
exit
Note
diskpart /s
Note
UEFI
UEFI/GPT https://msdn.microsoft.com/ja-jp/library/windows/hardware/dn898510(v=vs.85).aspx
\\Tec-pc\Images ()
net use n: \\Tec-pc\Images
Note
USB
DISM
Dism /Apply-Image /ImageFile:N:\CompanyImage.wim /index:1 /ApplyDir:W:\
1
CompanyImage.wim
Note
powercfg /s 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
BCDBOOT
bcdboot W:\Windows /l ja-jp
Note
DISM /Apply-Image
Dism /apply-image/imagefile:N:\Images\my-system-partition.wim /index:1 /ApplyDir:S:\
1
exit
Windows 10
[] []
[] []
[] []
13
14
[]
Office365Microsoft[Azure AD ]
PC[]
[]
[PC]
: LocalAdmin2
: Pa$$w0rd
: Pa$$w0rd
:
4-2
1.
Microsoft Edge
Cortana
Skype
OneNote
[Windows 10] [] []
[Internet Explorer] URL
[] Office 365 ProPlus
Note
Windows 8.1 Pro 20145
Windows 10 Windows 10
Windows 10 Windows ADK Windows Server Windows Microsoft Deployment ToolkitWindowsCenter Configuration Manager
IT
Appendix
A.1.
DISM Windows
A.1-1
Windows Windows (WIM) DISM
C:\Images\CompanyImage.wim C:\mount
Dism /Mount-Image /ImageFile:C:\Images\CompanyImage.wim /index:1 /MountDir:C:\mount1
Note
C:\mount
Dism /Unmount-Image /MountDir:C:\mount /commit
C:\mount
Dism /Unmount-Image /MountDir:C:\mount /discard
A.1-2
INF () Windows (.exe )
Dism /Image:C:\mount /Add-Driver /Driver:C:\drivers\driver.inf
Dism /Image:C:\mount /Add-Driver /Driver:C:\drivers /recurse
/Driver INF
Dism /Image:C:\mount /Remove-Driver /Driver:OEM1.inf /Driver:OEM2.inf
inf/Get-Drivers
Dism /Image:C:\mount /Get-Drivers
Note
Windows
/commit
A.1-3
(.cab) Windows Update (.msu) Windows
Dism /Image:C:\mount /Add-Package /PackagePath:C:\packages\package1.cab /PackagePath:C:\packages\package2.cab1
/PackagePath
.cab .msu
1 .cab
1 .msu
.cab .msu
DISM /Image:C:\mount /Remove-Package /PackageName:Microsoft.Windows.Calc.Demo~6595b6144ccf1df~x86~en~1.0.0.0 /PackageName:Microsoft-Windows-MediaPlayer-Package~31bf3856ad364e35~x86~~6.1.6801.01
/Get-Packages
Dism /Image:C:\mount /Get-Packages
Note
/commit
DISM.exe /Image:C:\mount /Remove-ProvisionedAppxPackage /PackageName:microsoft.app1_1.0.0.0_neutral_en-us_ac4zc6fex2zjp1
DISM.exe /Image:C:\mount /Get-ProvisionedAppxPackages
A.1-4
Windows
Dism /Image:C:\mount /Get-Features
/FeatureName Hyper-V
Dism /Image:C:\mount /Enable-Feature /FeatureName:Microsoft-Hyper-V-All /All1
/FeatureName Hyper-V
Dism /Image:C:\mount /Disable-Feature /FeatureName:Microsoft-Hyper-V-All1
Note
/commit
A.1-5 WIM
WIM USB Windows PE FAT32 WIM 4GB Dism WIM
/Split-Image .swm swm swm c:\Data.swm Data.swm Data2.swm Data3.swm .wim C:\ (VHD) /FileSize (MB)
Note
Windows10 istall.exe wim
wim WIM Dism
https://msdn.microsoft.com/ja-jp/library/windows/hardware/dn938329(v=vs.85).aspx
WIM
Dism /Split-Image /ImageFile:C:\images\data.wim /SWMFile:D:\imaging\install.swm /FileSize:3000 1 3GB
Dism /Apply-Image /ImageFile:D:\images\data.wim /SWMFile:D:\imaging,\data*.swm /index:1 /ApplyDir:C:\ 1C: D:\images\ Data.swm, Data1.swm
Note
Windows 10 UEFI UEFI 2 TB UEFI
UEFI http://msdn.microsoft.com/ja-jp/library/windows/hardware/gg463149.aspx
Windows UEFI GUID (GPT) Windows
GPT 128
100 MB FAT32
A.2.
Windows 10
Note
Windows 10
Unicode
( (GDR)Service Pack (SP))
1. [][]
[] []
[][]
[]
[]
[English]
[English]
[English (United States)]
WindowsUpdate
[]
[]
[]
[]
OS2-3 []
Note
Build 10586
A.3. IE
IEDISM
1. [] - [] - []
[][Internet Explorer]
[InternetExplorer]
[]
[]
[]
[OK]
OS
[:]
c:\AppAssoc.xml
Dism /Online /Export-DefaultAppAssociations:c:\AppAssoc.xml
10
Dism /Online /Import-DefaultAppAssociations:c:\AppAssoc.xml
IE
[] - [] - []
[][Internet Explorler] - [][ Internet Explorler]
[] - []-[] - []
[Internet Explorer]
[]
A.4. Windows RE
A.4-1 WindowsRE
\\Tec-pc\Images CreatePartitions-BIOS.txt CreatePartitions-UEFI.txt
BIOS
rem == CreatePartitions-BIOS.txt ==
select disk 0
clean
rem == 1. System partition ======================
create partition primary size=100
format quick fs=ntfs label="System"
assign letter="S"
active
rem == 2. Windows partition =====================
create partition primary
rem == b. Create space for the recovery tools
format quick fs=ntfs label="Windows"
assign letter="W"
rem == 3. Recovery tools partition ==============
create partition primary size=61440
format quick fs=ntfs label="Recovery"
assign letter="R"
set id=27
list volume
exit
UEFI
rem == CreatePartitions-UEFI.txt ==
select disk 0
clean
convert gpt
rem == 1. System partition =========================
create partition efi size=100
format quick fs=fat32 label="System"
assign letter="S"
rem == 2. Microsoft Reserved (MSR) partition =======
create partition msr size=16
rem == 3. Windows partition ========================
create partition primary size=61440
format quick fs=ntfs label="Windows"
assign letter="W"
rem == 4. Recovery tools partition ================
create partition primary
format quick fs=ntfs label="Recovery tools"
assign letter="R"
set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac"
gpt attributes=0x8000000000000001
list volume
exit
1. Windows PE
\\Tec-pc\Images ()
net use N: \\Tec-pc\Images
Note
USB
DISKPART
BIOS :
S: 100MB
W: Windows 61440MB
R:
S:
W:
Windows
R:
UEFI :
S: 100MB (FAT32)
: Microsoft (MSR) 16MB
W: Windows 61440MB
R: Recovery
S:
MSR
W:Windows
R:Recovery
Note
winre.wim
DISKPART
BIOS :
diskpart /s N:\CreatePartitions-BIOS.txt
UEFI :
diskpart /s N:\CreatePartitions-UEFI.txt
DISM
Dism /apply-image /imagefile:N:\CompanyImage.wim /index:1 /ApplyDir:W:\
1
Note
CompanyImage.wim
BCDBOOT
BIOS :
bcdboot W:\Windows /l ja-jp
UEFI :
bcdboot W:\Windows /l ja-jp /s S:
Note
DISM /Apply-Image
Dism /apply-image /imagefile:N:\Images\my-system-partition.wim /index:1 /ApplyDir:S:\
1
Windows RE Windows RE
Note
winre.wim\Recovery\WindowsRE
winre.wim
md R:\Recovery\WindowsRE
xcopy /h W:\Windows\System32\Recovery\winre.wim R:\Recovery\WindowsRE\
1
Note
WinREDaRTWinRE
DaRT
https://msdn.microsoft.com/en-us/library/mt402798.aspx
PC
W:\Windows\System32\reagentc /setreimage /path R:\Recovery\WindowsRE /target W:\Windows
1
Wpeutil shutdown
[] []
[] []
[][]
[]
16
17
[]
Office365Microsoft[Azure AD ]
PC[]
[]
[PC]
: LocalUser1
: Pa$$w0rd
[] []
[]
A.4-2 PC
1.
:LocalUser1
:P@$$w0rd
1.
1. [][]
[] []
[] []
[PC][]
[][]
[PC ] []
[]
: LocalUser1
: Pa$$w0rd
Note
OS