微軟官方背景資料:如何通過(guò)Sysprep準(zhǔn)備磁盤(pán)復(fù)制所需的映像 Windows 如何確定 ACPI 兼容性安裝 Windows XP 或 Windows Server 2003 之后的 HAL 選項(xiàng)眾所周知,微軟自帶系統(tǒng)封裝工具SYSPREP,可以方便快捷地進(jìn)行企業(yè)產(chǎn)品部署,但是在WINDOWS LONGHORN之前,運(yùn)用SYSPREP有一個(gè)限制,就是僅適用于用于封裝的源計(jì)算機(jī)和目標(biāo)計(jì)算機(jī)必須具有相同硬件抽象層 (HAL) 因此,不同的網(wǎng)友均提出了不用的HAL檢測(cè)解決方案,如ACPI封包、死性不改的電源模式等等,這些解決方案不同程度存在幾個(gè)缺點(diǎn): 1、檢測(cè)的兼容性無(wú)法達(dá)到100%; 2、檢測(cè)需要額外的文件,并且可能需要重新啟動(dòng)計(jì)算機(jī),耗費(fèi)了時(shí)間 有沒(méi)有一個(gè)最完美的解決方案呢?答案其實(shí)就在微軟未公開(kāi)的技術(shù)。筆者通過(guò)對(duì)于WINDOWS LONGHORN各內(nèi)測(cè)版本進(jìn)行分析,現(xiàn)在公開(kāi)微軟部分未公開(kāi)的技術(shù):
1、微軟自WINDOWS LONGHORN后,改寫(xiě)了NTLDR的部分代碼,提供了/detecthal 接口 2、BOOT.INI支持/detecthal參數(shù),以實(shí)現(xiàn)與NTLDR的結(jié)合, 并實(shí)現(xiàn)開(kāi)機(jī)啟動(dòng)即自動(dòng)檢測(cè) HAL 3、\INF\dtecthal.inf是一個(gè)關(guān)鍵性文件,提供各種HAL類(lèi)型檢測(cè)的參數(shù)說(shuō)明
; ; ;------------------------------------------------------------------------- ; Auto detecd Computer HAL with BIOS information ;------------------------------------------------------------------------- ; Copyright(R)1980-2005 Microsoft Crack Center MCC(1980-2005) ; ; tesk work by mstest@MCC 20050515 ; ; mstested@hotmail.com ;------------------------------------------------------------------------- ; ; ; [ACPIOptions] ; This section lists options that affect the installation of ACPI on x86 ; ; ACPIEnable ; 0 - ACPI will be disabled at install time regardless of the BIOS ; 1 - ACPI will be enabled at install time if an ACPI BIOS is present ; 2 - ACPI will be enabled based on the GoodACPIBios list, the NWACL ; and ACPIBiosDate ; ; ACPIBiosDate = mm,dd,yyyy ; Supplies the date that a BIOS must have to be considered good if it is ; not in the GoodACPIBios list. If a BIOS has a date greater than this and ; is not in the NWACL list, then it will be used unless ACPIEnable = 0 ; [ACPIOptions] ACPIEnable = 2 ACPIBiosDate = 01,01,1999