이 과정은 신규 윈도우 이미지를 다운로드 받아 윈도우 설치 시 여러가지 질문없이 자동으로 설치되도록 unattend 파일을 생성한다.
생성된 autounattend.xml 파일은 sysprep 시 적용하여 윈도우 설치 이미지인 install.wim에 포함된다.
0. 준비물:
install.wim
1. Windows ADK 다운로드
Windows ADK 설치: 자신의 윈도우 버전을 미리 조사하고 맞는 버전으로 설치한다.
https://docs.microsoft.com/ko-kr/windows-hardware/get-started/adk-install
2. 설치
"배포 도구"만 설치한다.
실행 후 카탈로그 생성에 대한 대답은 > Yes
3. Windows Kits > "Windows 시스템 이미지 관리자" 실행
파일 > 새 응답 파일
준비된 install.wim 파일을 선택하고 카다로그 파일을 찾을 수 없다는 경고는 무시하고 새로운 카타로그를 만든다.
※ install.wim 로딩이 오래 걸린다.
4. 카타로그 편집
4-1. UI 언어 및 키보드 설정
(1) Windows 이미지 탭 > Components >
amd64_Microsoft-Windows-International-Core-WinPE > 우클릭 메뉴 > 1 WindowsPE에 설정 추가
(2) 응답 파일 탭 > Components > 1 windowsPE > amd64_Microsoft-Windows-International-Core-WinPE
속성 탭 > 설정 > LayeredDriver: 5
속성 탭 > 설정 > UILanguage: ko-KR
+SetupUILanguage
속성 탭 > 설정 > UILanguage: ko-KR
4-2. EULA 항목 동의
(1) Windows 이미지 탭 > Components >
amd64_Microsoft-Windows-Setup > 우클릭 메뉴 > 1 WindowsPE에 설정 추가
(2) 응답 파일 탭 > Components > 1 windowsPE > amd64_Microsoft-Windows-Setup >
+UserData > 속성 탭 > 설정 >
AcceptEula:true
4-3. Administrator로 자동 로그인 및 기타 설정
(1) Windows 이미지 탭 > Components >
amd64_Microsoft-Windows-Shell-Setup > 우클릭 메뉴 > 7 oobeSystem에 설정 추가
(2) 응답 파일 탭 > Components > 7 oobeSystem > amd64_Microsoft-Windows-Shell-Setup >
+AutoLogin > 속성 탭 > 설정 >
Enabled:true
LogonCount:1
Username: Administrator
+OOBE > 속성 탭 > 설정 >
Hide_로 시작하는 모든 항목:true
NetworkLocation:Work
ProtectYourPC:3
SkipMachineOOBE:true
4-4. 프로파일 복사 및 타임존
(1) Windows 이미지 탭 > Components >
amd64_Microsoft-Windows-Shell-Setup > 우클릭 메뉴 > 4 specialize에 설정 추가
(2) 응답 파일 탭 > Components > 4 specialize > amd64_Microsoft-Windows-Shell-Setup
속성 탭 > 설정 >
CopyProfile:true
속성 탭 > 설정 >
TimeZone:Korea Standard Time
5. 저장
파일 > 응답 파일 저장
autounattend.xml 파일명으로 저장
6. sysprep 봉인 시 사용
net stop wmpnetworksvc
C:\Windows\system32\sysprep\sysprep.exe /generalize /oobe /shutdown /unattend:C:\autounattend.xml