在 Microsoft 部署工具包 2008年更新 1 中不包括了 Service Pack 2 为 Windows Vista 和 Windows Server 2008 的支持

注意:这篇文章是由无人工介入的微软自动的机器翻译软件翻译完成。微软很高兴能同时提供给您由人工翻译的和由机器翻译的文章, 以使您能使用您的语言访问所有的知识库文章。然而由机器翻译的文章并不总是完美的。它可能存在词汇,语法或文法的问题,就像是一个外国人在说中文时总是可能犯这样的错误。虽然我们经常升级机器翻译软件以提高翻译质量,但是我们不保证机器翻译的正确度,也不对由于内容的误译或者客户对它的错误使用所引起的任何直接的, 或间接的可能的问题负责。

点击这里察看该文章的英文版: 971943
本文已归档。它按“原样”提供,并且不再更新。
症状
Windows Vista Service Pack 2 (SP2) 或 Windows Server 2008 Service Pack 2 导入 Microsoft 部署工具包 2008年更新 1 后,您注意到缺少的 Service Pack 2,在 Microsoft 部署工具包中的支持。这包括部分接触部署过程中 支持的平台 列表和缺少的语言包中缺少的 Service Pack 2 的支持。
原因
Microsoft 部署工具包 2008年更新 1 的发布 Service Pack 2 版本之前。因此,部署工具包 2008年更新 1 不包含为 Windows Vista SP2 和 Windows Server 2008 SP2 的支持。
替代方法
要变通解决此问题,管理员手动可以 ZTISupportedPlatforms.xml 和 DeployWiz_Initialization.vbs 文件更新 Service Pack 2 支持添加到 Microsoft 部署工具包。

支持平台的修补程序

To add support for Windows Vista SP2 and for Windows Server 2008 SP2 in the Supported Platforms list, add the following entries to the ZTISupportedPlatforms.xml file:
<SupportedPlatform name="x86 Windows Vista Service Pack 2">       <Expression><![CDATA[SELECT * FROM Win32_OperatingSystem WHERE Version like '6.0%' AND OSType=18 AND ServicePackMajorVersion = 2 AND ProductType=1]]></Expression>       <Expression><![CDATA[SELECT * FROM Win32_OperatingSystem WHERE OSArchitecture like '32%']]></Expression></SupportedPlatform><SupportedPlatform name="x64 Windows Vista Service Pack 2">       <Expression><![CDATA[SELECT * FROM Win32_OperatingSystem WHERE Version like '6.0%' AND OSType=18 AND ServicePackMajorVersion = 2 AND ProductType=1]]></Expression>       <Expression><![CDATA[SELECT * FROM Win32_OperatingSystem WHERE OSArchitecture like '64%']]></Expression>	</SupportedPlatform><SupportedPlatform name="x86 Windows Server 2008 Service Pack 2">       <Expression><![CDATA[SELECT * FROM Win32_OperatingSystem WHERE Version like '6.0%' AND OSType=18 AND ServicePackMajorVersion = 2 AND ProductType>1]]></Expression>       <Expression><![CDATA[SELECT * FROM Win32_OperatingSystem WHERE OSArchitecture like '32%']]></Expression></SupportedPlatform><SupportedPlatform name="x64 Windows Server 2008 Service Pack 2">       <Expression><![CDATA[SELECT * FROM Win32_OperatingSystem WHERE Version like '6.0%' AND OSType=18 AND ServicePackMajorVersion = 2 AND ProductType>1]]></Expression>       <Expression><![CDATA[SELECT * FROM Win32_OperatingSystem WHERE OSArchitecture like '64%']]></Expression></SupportedPlatform>
ZTISupportedPlatforms.xml 文件可能存在多个位置中的通知。例如对于如果 C:\program Files\Microsoft 部署工具包目录中安装 Microsoft 部署工具包 2008年更新 1,并且在 C:\distribution 目录中创建一个实验室部署共享您可能发现文件同样位于以下目录:
C:\Distribution\Scripts\ZTISupportedPlatforms.xml
是 Files\Microsoft 部署 Toolkit\Scripts\ZTISupportedPlatforms.xml
是 Files\Microsoft 部署 Toolkit\Templates\Distribution\Scripts\ZTISupportedPlatforms.xml

语言包处理

若要向 Windows Vista SP2 和 Windows Server 2008 SP2 语言包支持手动编辑 DeployWiz_Initialization.vbs 文件,然后替换现有 ConstructLPQuery() 函数具有以下文本:
Function ConstructLPQuery ( isLangPack )       Dim Keyword       Dim isServer       Dim ImgBuild       Dim SPVersion       Dim LPQuery       Dim LPVersion       Dim i       isServer  = inStr(1,oEnvironment.Item("ImageFlags"),"SERVER",vbTextCompare) <> 0       ImgBuild  = oEnvironment.Item("ImageBuild")       If not isLangPack then              LPQuery = "Type != 'LanguagePack' and (ProductVersion = '" & ImgBuild & "' or ProductVersion = '') "       ElseIf isServer and left(ImgBuild,4) = "6.0." then              ' All Windows Vista Language Packs use Product Version 6.0.6001.18000.              LPQuery = "Type = 'LanguagePack' and Name = 'Microsoft-Windows-Server-LanguagePack-Package' and  ProductVersion = '6.0.6001.18000' "       ElseIf left(ImgBuild,4) = "6.0." then              ' All Windows Server 2008 Language Packs use Product Version 6.0.6000.16386.              LPQuery = "Type = 'LanguagePack' and Name = 'Microsoft-Windows-Client-LanguagePack-Package' and  ProductVersion = '6.0.6000.16386' "       ElseIf isServer then              LPQuery = "Type = 'LanguagePack' and Name = 'Microsoft-Windows-Server-LanguagePack-Package' and  ProductVersion = '" & ImgBuild & "' "       Else              LPQuery = "Type = 'LanguagePack' and Name = 'Microsoft-Windows-Client-LanguagePack-Package' and  ProductVersion = '" & ImgBuild & "' "       End if       If left(ImgBuild,4) = "6.0." then              LPVersion = Mid(ImgBuild,8,1)              If IsNumeric(LPVersion) and LPVersion > 0 then                     ' Exclude all Language Packs that are less than the Current OS.                     LPQuery = LPQuery & " and Keyword != 'Language Pack'"                     For i = 2 to LPVersion                           LPQuery = LPQuery & " and Keyword != 'SP" & (LPVersion - 1) & " Language Pack'"                     Next              End if       ElseIf IsServer then              ' Windows Server 2008 R2 Beta 1 uses SP1.              LPQuery = LPQuery & " and (Keyword = 'Language Pack' or Keyword = 'SP1 Language Pack' )"       Else              ' Windows 7 defined as RTM.              LPQuery = LPQuery & " and (Keyword = 'Language Pack')"       End if       If UCase(oEnvironment.Item("ImageProcessor")) = "X64" then              LPQuery = "//packages/package[ProcessorArchitecture = 'amd64' and " & LPQuery & "]"       Else              LPQuery = "//packages/package[ProcessorArchitecture = 'x86' and " & LPQuery & "]"       End if       oLogging.CreateEntry vbTab & "QUERY: " & LPQuery, LogTypeInfo       ConstructLPQuery = LPQueryEnd function 
DeployWiz_Initialization.vbs 文件可能存在多个位置中的通知。例如对于如果 C:\program Files\Microsoft 部署工具包目录中安装 Microsoft 部署工具包 2008年更新 1,并且在 C:\distribution 目录中创建一个实验室部署共享您可能发现文件同样位于以下目录:
C:\Distribution\Scripts\DeployWiz_Initialization.vbs
是 Files\Microsoft 部署 Toolkit\Templates\Distribution\Scripts\DeployWiz_Initialization.vbs
状态
Microsoft 已经确认 Microsoft 部署工具包 2008年更新 1 不提供对于 Windows Vista SP2 和 Windows Server 2008 SP2 的支持。在"替代方法"一节中描述的方法将为 Windows Vista SP2 和 Windows Server 2008 SP2 支持添加到 Microsoft 部署工具包 2008年更新 1。
mdt 2008 lti

警告:本文已自动翻译

属性

文章 ID:971943 - 上次审阅时间:01/16/2015 18:16:58 - 修订版本: 1.0

Windows Vista Service Pack 2, Windows Server 2008 Service Pack 2

  • kbnosurvey kbarchive kbmt kbexpertiseinter kbtshoot kbsurveynew kbprb KB971943 KbMtzh
反馈