DISM, PowerShell, Windows 시스템 이미지 관리자가 핵심 도구


4장. Create and maintain desktop images
Objective 4.1: Plan images
32비트 이미지는 64비트 컴퓨터에 사용가능한데, 64비트 이미지는 32비트 컴퓨터에 사용 불가.

Objective 4.2: Create images
Creating capture images by using WDS
새 캡처 이미지 만드는 명령어
WDSUtil /new-captureimage /image:"Boot" /architecture:x64 /destinationimage
/filepath:E:\Shares\Capture.wim /Name:"New Capture Image"

Capturing an image to an existing or new WIM file
캡처하기 전에 참조 컴퓨터에는 DHCP와 PXE가 가동되어야 하며 WDS에는 유효한 부팅 및 캡처 이미지가 있어야 함.
1. 참조 컴퓨터를 준비. 운영체제, 응용프로그램, 사용자지정 준비.
2. Sysprep /generalize /oobe (/reboot 추가하면 꺼지지 않고 재부팅됨)
3. 참조 컴퓨터에서 PXE로 부팅하여 캡처 이미지 선택.
4. 캡처할 볼륨과 이름, 설명 입력하고 해당 이미지가 저장될 공간 지정.

Capturing an operating system image by using Configuration Manager
1. 소프트웨어 라이브러리 → 운영 체제 폴더 → 새 작업 시퀀스 → Build And Capture A Reference Operating System Image 탬플릿 선택
2. 작업 시퀀스 정보 페이지에서 이름, 구성 관리자에 있는 부팅 이미지 지정
3. 구성 관리자의 목록에 있는 설치 이미지 선택. 제품 키, 로컬 관리자 암호 지정.
4. 작업 그룹 또는 도메인 입력.
5. 설치할 기본 구성 관리자 패키지 선택.
6. 업데이트 설정: 필수만, 모든, 안함
7. 소프트웨어 추가 후 완료

Objective 4.3: Maintain images
Updating images by using DISM
온라인 이미지 서비스: 언어 팩 추가, 기능 활성화 및 해제, 설치된 드라이버와 패키지 목록 확인

오프라인 이미지 서비스: 언어팩/기능/드라이버 추가 및 제거, 업데이트 적용, unattend.xml을 이용한 구성 설정 적용

Applying updates, drivers, settings, and files to online and offline images
Applying updates
1. 이미지 탑재
Dism.exe /Mount-Image /ImageFile:C:\test\images\install.wim /Index:1 /MountDir:C:\test\offline 또는
Mount-WindowsImage –ImagePath C:\test\images\install.wim –Index 1 –Path C:\test\offline

2. 이미지에 설치된 패키지 확인
Dism.exe /Image:C:\test\offline /Get-Packages /Format:Table 또는
Get-WindowsPackage –Path C:\test\offline

3. 업데이트 적용
Dism.exe /image:C:\test\offline /Add-Package /PackagePath:C:\test\updates\Windows8.1-KB2994897-x64.msu 또는
Add-WindowsPackage –Path C:\test\offline –PackagePath C:\test\updates\Windows8.1-KB2994897-x64.msu

4. 저장
Dism.exe /Commit-Image /MountDir:C:\test\offline 또는
Save-WindowsImage –Path C:\test\offline

5. Get-Package로 저장되었나 확인
6, 7. 이미지 해제
Dism.exe /Unmount-Image /MountDir:C:\test\offline /Commit 또는
Dismount-WindowsImage –Path C:\test\offline -Save