用WSIM創建無人值守Vista裝設光盤映像

作者: 紀平,  出處:IT專家網, 責任編輯: 劉志坡, 
2009-03-20 08:55
  Windows System Image Manager(WSIM)是微軟的系統映像制作工具,透過其可以制作無人職守的系統裝設映像文件。

  【IT專家網獨家】 Windows System Image Manager(WSIM)是微軟的系統映像制作工具,透過其可以制作無人職守的系統裝設映像文件。WSIM通常應用於企業環境,當我們需要快速部署多台 PC時,應用事先創建的應答文件可以實現無人參與的系統部署。下面筆者以創建Vista系統映像為例,演示WSIM的應用。

  WSIM的使用需要一定的環境,下面是筆者的測試環境:

  伺服器

  OS:Windows Server 2008

  Hostname:server1

  Share:ctocio

  用戶端

  OS:Windows Vista

  部署了WSIM Windows System Image Manager

  1、創建Distribution Share

  依次點擊“開始”→“所有程式”→“Microsoft Windows AIK”→“Windows System Image Manager”打開WSIM工具。在Distribution Share面板下的“Select a Distribution Share”上右鍵按一下選擇“Create Distribution Share”彈出創建對話方塊,在“Folder name”後面的文字方塊中輸入\\server1\ctocio,然後按一下“Open”即可完成發佈對象的創建。創建完成後,展開\\server1 \ctocio可以看到創建了三個項目$OEM$ Folders、Out-of-Box Drivers、Packages。(圖1)

  用WSIM創建無人值守Vista裝設光盤映像

  2、添加Package包

  在WSIM中執行“Tools”→“Import Package(s)”彈出對話方塊,定位到C:\Test將名為LanguagePack.cab包添加進來。然後展開Distribution Share下的Packages\LanguagePack

  可以看到x86_Microsoft-Windows-Client-LanguagePack-Package__hu-HU。說明添加成功,選擇該包在WSIM的Properties面板中可以看到其詳細資訊。(圖2)

  用WSIM創建無人值守Vista裝設光盤映像

3、創建裝設應答文件

  在WSIM窗口中執行“File”→“Select Windows Image”彈出對話方塊,定位到C:\Test,按一下Files of type右側的下拉清單選擇Catalog files(*.clg),然後從中選擇一個應答文件,我們選擇install_Windows Vista BUSINESS.clg,按一下“Open”將其添加進來。接下來執行“File”→“New Answer File”可以看到創建應答文件成功。(圖3)

  用WSIM創建無人值守Vista裝設光盤映像

  4、應答文件基本設定

  (1).語言設定

  在WSIM窗口的Windows Image面板中依次展開“Windows Vista BUSINESS(Catalog)→“Components”→“x86_Microsoft-Windows-International- Core-WinPE__neutral”,在“x86_Microsoft-Windows-International-Core- WinPE__neutral”上右鍵按一下選擇“Add Setting to Pass1 windowsPE”將其添加到應答文件中。然後選中x86_Microsoft-Windows-International-Core-

  WinPE_neutra在Properties面板中進行設定。其具體的設定是:InputLocale:en-US、 SystemLocale:en-US、UILanguage:en-US、UserLocale:en-US,點擊SetupUILanguage設定 其右側的UILanguage值為en-US。(圖4)

  用WSIM創建無人值守Vista裝設光盤映像

  (2).磁碟設定

  在WSIM窗口的Windows Image面板中依次展開Windows Vista BUSINESS

  (Catalog)\Components\ x86_Microsoft-Windows-Setup__neutral\DiskConfiguration,右鍵按一下 DiskConfiguration選擇Add Setting to Pass1 windowsPE。在Answer File面板中選擇x86_Microsoft-Windows-

  Setup_neutral\DiskConfiguration,在Properties面板中設定WillShowUI為OnError。

  在Windows Image面板中依次展開Windows Vista BUSINESS

  (Catalog)\Components\ x86_Microsoft-Windows-

  Setup__neutral\DiskConfiguration\Disk,右鍵按一下Disk選擇Add Setting to Pass 1 windowsPE,在Answer File面板中選擇Disk,設定其屬性DiskID為0,WillWipeDisk為true。展開Disk,右鍵按一下 CreatePartitions,選擇Insert New CreatePartition,設定其Properties面板中的值,Order為1,Size為50000,Type為Primary。右擊 ModifyPartitions選擇Insert New ModifyPartition,設定其屬性面板中的值,Active為true、Extend為false、

  Format為NTFS、Label為Boot、Letter為C、Order為1、PartitionID為1。

 在Windows Image面板中依次展開Components\x86_Microsoft-Windows-Setup__neutral\ImageInstall \OSImage\InstallTo,右鍵按一下InstallTo選擇Add Setting to Pass 1 windowsPE。在Answer File面板中展開OSImage,選擇InstallTo在其屬性面板中設定DiskID為0,PartitionID為1。(圖5)

  用WSIM創建無人值守Vista裝設光盤映像

  (3).用戶設定

  在WSIM窗口的Windows Image面板中展開Components\x86_Microsoft-Windows-

  Setup__neutral,右鍵按一下UserData選擇Add Setting to Pass 1 windowsPE。在Answer File面板中選擇UserData設定其屬性,AcceptEula為true、FullName為Ctocio、

  Organization為ctocio。展開UserData選擇ProductKey,設定其屬性Key(序列號我們隨便編寫一個)為aaaa-bbbb-cccc-dddd-eeee、WillShowUI為OnError。

  在Windows Image面板中展開x86_Microsoft-Windows-Shell-

  Setup_6.0..4_neutral,右鍵按一下UserAccounts選擇Add Setting

  to Pass 7 oobeSystem。在Answer File面板中展開UserAccounts,選擇AdministratorPassword,在屬性面板中設定其密碼。右鍵按一下 DomainAccounts選擇Insert New DomainAccountList,然後在屬性面板中設定Domain為Ctocio。並選擇Insert New

  DomainAccount,設定Group為Administrators、Name為Ctocio。(圖6)

  用WSIM創建無人值守Vista裝設光盤映像

  (4).桌面設定

  在WSIM窗口的Windows Images面板中依次展開Components\x86_Microsoft-Windows-Shell-Setup__neutral,右鍵按一下 Themes選擇Add Setting to Pass 7 oobeSystem。在Answer File面板中選擇Themes,然後在屬性面板中設定DefaultThemesOff為true。在Windows Images面板中依次展開Components\x86_Microsoft-Windows-Sidebar_,然後右鍵按一下該項選擇Add Setting to Pass 7 oobeSystem。在Answer File面板中選擇x86_Microsoft-Windows-Sidebar_neutral,在屬性面板中設定 SidebarOnByDefault為false、SidebarVisible為false。(圖7)

  用WSIM創建無人值守Vista裝設光盤映像

 (5).IE設定

  在Windows Image面板中依次展開Components\x86_Microsoft-Windows-

  IE-InternetExplorer__neutral,右鍵按一下該項選擇Add setting to

  Pass 4 specalize。在Answer File面板中選擇該項,然後設定其屬性BlockPopups為yes、

  CompanyName為Ctocio、Home_Page為http://www.ctocio.com.cn、IEWelcomeMsg為false、

  Window_Title_CN為Ctocio, Inc。(圖8)

  用WSIM創建無人值守Vista裝設光盤映像

  (6).元件裝設設定

  在Windows Image面板中展開Packages/Foundation選中x86_Microsoft-Windows-Foundation- Package_,然後執行“Edit”→“Add to Answer File”,在Answer File面板中選擇x86_Microsoft-Windows-Foundatation-Package然後設定屬性,TabletPCOC為 Disabled、TelnetClient為Enabled。(圖9)

  用WSIM創建無人值守Vista裝設光盤映像

  (7).輸出文件

  在WSIM窗口的Distribution Share面板中展開\\Server1\ctocio,右鍵按一下Out-of-Box Drivers選擇Insert Driver Path to Pass1 WindowsPE。在Answer File面板中展開PathAndCredentials[Key=”KeyValue”]選擇Credentials,在Properties面板中進 行設定,

  Domain為Ctocios、Password為test168、Username為ctocio。(圖10)

  用WSIM創建無人值守Vista裝設光盤映像

  (8).驗證及保存應答文件

  在WSIM窗口中執行“Tools”→“Validate Answer File”,我們可以從Messages面板中看到剛才設定的應答文件了。然後執行“File”→“Save Answer File”,我們可將剛才創建的應答文件保存起來。其實,應答文件就是一個xml文件,我們可以用記事本打開進行查看。如果你懂xml語言可以不藉助 WSIM按照規范直接進行編寫。(圖11)

  用WSIM創建無人值守Vista裝設光盤映像

  總結:在用Windows System Image Manager創建系統裝設應答文件時,有非常多的選項可供大家選擇設定,本文只是選取了其中比較重要的幾個選項。對於其他的選項,大家可以按照上面的方法進行設定。

來源:http://big5.tianjimedia.com/b5/winsystem.ctocio.com.cn/vista/262/8761262.shtml

0 意見:

張貼留言

我有空會把自己的意見寫下來,如果你看了有什麼想法也可以發表一下