1、從微軟官網下載建立應答文件的工具(Windows Assessment and Deployment Kit,ADK)並安裝,安裝方法與普通軟件沒什麼區別,在如圖過程時,所有勾選安裝;ide
2、安裝完成後,從開始菜單打開「Windows System Image Manager」,選擇「File—Select Windows Image」;工具
3、找到系統鏡像(演示的鏡像是是我直接從ISO鏡像中解壓的,實際位置在「G\sources\install.wim」,其中G是光驅的盤符。)打開spa
4、選擇系統版本;3d
Windows Server 2012 R2orm
Windows 8.1xml
5、這個警告的大意是:「鏡像的目錄文件沒法直接打開,須要從新建立一個目錄文件,或取消該過程;blog
6、選擇「File—New Answer File」建立一個新的空白應答文件;ip
7、在「Windows Image」窗口下的「Components」文件下面,找打「amd64_Microsoft-Windows-International-Core-WinPE(後面還有一些版本號)」,右擊選擇「Add Setting to Pass 1 WindowsPE」;ci
8、在右邊屬性長款,添加屬性,這個是語言屬性,「zh-cn」是中文,get
9、找到「amd64_Microsoft-Windows-Setup\DiskConfiguration\Disk」右擊選擇「Add Setting to Pass 1 WindowsPE」,DiskID是安裝系統的硬盤,0指的是第一塊硬盤,WillWipeDisk是清除磁盤內容;
10、找到「amd64_Microsoft-Windows-Setup\DiskConfiguration\Disk\CreatePartitions\CreatePartition」右擊選擇「Add Setting to Pass 1 WindowsPE」,「Extend」設置爲「True」,則表示將硬盤分紅一個區(即前面說的安裝系統的第一塊磁盤),則「Size」不能設置參數,若是「Extend」設置爲「false」,則「Size」設置安裝系統分區的大小,,單位是MB;「Order」則是該卷的標記爲1;「Type」設置「Primary」則該分區是主分區;
11、找到「amd64_Microsoft-Windows-Setup\DiskConfiguration\Disk\CreatePartitions\ModifyPartition」,右擊選擇「Add Setting to Pass 1 WindowsPE」,「Active」設置「True」表示該分區爲活動;「Format」設置「NTFS」表示該分區的格式;「Label」設置磁盤的標籤,即分區的名稱,自定義;「Letter」設置盤符,通常爲「C」;「Order」這些設置應用到卷和前面的「Order」對應爲1;「PartitionID」設置這個卷爲第「1」個分區;
12、找到「amd64_Microsoft-Windows-aetup\InstallImage\OSImage\InstallFrom\Metadata」,右擊選擇「Add Setting to Pass 1 WindowsPE」,這裏設置的所安裝系統的版本;「key」設置「Image/Name」;「Value「」設置具體的系統版本,如圖,我選的是「Windows Server 2012 R2 ServerDatacenter」;
Windows 8.1
13、wim鏡像通常都會包含多個系統,這裏咱們不知道系統的版本,能夠經過「Deployment and Image Tools Environment」運行「Imagex /info <WIM文件的路徑>」
14、這裏顯示了每一個系統的具體版本;
Windows Server 2012 R2
Windows 8.1
15、找到「amd64_Microsoft-Windows-aetup\InstallImage\OSImage\InstallTo」,右擊選擇「Add Setting to Pass 1 WindowsPE」,選擇安裝系統的磁盤和分區,「DiskID」值爲「0」,表示安裝在第一塊硬盤;「PartitionID」值爲「1」,表示安裝在第一個分區;
16、找到「amd64_Microsoft-Windows-aetup\UserData」右擊選擇「Add Setting to Pass 1 WindowsPE」,「AcceptEula」微軟的許可條款,「true」表示接受;「FullName」和「Organization」組織名稱,能夠直接輸入公式名稱(自定義);
17、找到「amd64_Microsoft-Windows-aetup\UserData\Productkey」右擊選擇「Add Setting to Pass 1 WindowsPE」,「key」是系統的序列號; 「WillShowUI」設置「Never」(或空白)表示不顯示;
19、找到「amd64_Microsoft-Windows-Shell-Setup」右擊選擇「Add Setting to Pass 4 Specialize」,「ComputerName」設置計算機名,「*」表示由系統隨機生成(可自定義);「TimeZone」是系統時間,「Pacific Standard Time」表示太平洋時間;
20、找到「amd64_Microsoft-Windows-Shell-Setup\OOBE」右擊選擇「Add Setting to Pass 7 OobeSystem」,「HideEULAPage」歡迎界面,「True」表示不顯示;「NetworkLocation」配置Windows 防火牆,Work配置爲開啓;「ProtectYourPC」配置系統更新,「1」表示打開自動更新;
21、找到「amd64_Microsoft-Windows-Security-SPP-UX」右擊選擇「Add Setting to Pass 4 Specialize」,「SkipAutoActivation」是否激活系統,「false」表示不激活;
22、在Windows 8.1安裝系統的時候,須要本身新建一個用戶,打開「amd64_Microsoft-Windows-Shell-Setup\USerAccounts\LocalAccounts\LocalAccount」右擊選擇「Add Setting to Pass 7 OobeSystem」,「DisplayName」表示顯示名稱;「Group」用戶所在的組,設置爲「Administrators」;「Name」表示用戶名;打開「amd64_Microsoft-Windows-Shell-Setup\USerAccounts\LocalAccounts\LocalAccount\Password」右擊選擇「Add Setting to Pass 7 OobeSystem」,設置用戶密碼;
正常狀況下安裝系統,應答文件就能夠,若是遇到參數要求和案例中不太同樣的,能夠選中該設置,而後按「F1」查看該選項的幫助;若是還有其餘要求,能夠直接經過「F1」,而後經過裏面的搜索,經過搜索關鍵字的方法,查找幫助。
2三、經過「File—Save Answer File」保存該應答文件;
2四、輸入「Autounattend」,而後選擇「保存」;(注意:文件名必定要保存爲「Autounattend.xml」,否則沒法識別。)
將作好的應答文件作進IOS鏡像,保存。