Sccm

如何讓我的自定義應用程序列表在 MDT 2012 中正確顯示

  • September 3, 2013

我有一個 MDT 任務序列,它安裝作業系統並根據您的 OU 選擇顯示應用程序列表(不同的部門需要單獨的應用程序)。啟動到 WinPE 並執行任務序列時,選擇選項正確顯示並正常安裝。

但是,當從 Windows 刷新執行任務序列時,應用程序僅顯示帶有範例應用程序的預設面板。根據日誌,它正在訪問和執行正確的文件(加上如果找不到文件,它會錯誤地輸出任務序列)但不能正確顯示。

啟動此嚮導的日誌複製如下:

Expand a string: WinPEandFullOS TSManager 8/23/2013 9:08:09 AM 17324 (0x43AC)
Executing command line: smsswd.exe /run: cscript.exe "%DeployRoot%\Scripts\UDIWizard.wsf" /definition:"AppLists\%OSDInstallOU%.xml" TSManager 8/23/2013 9:08:09 AM 17324 (0x43AC)
[ smsswd.exe ] InstallSoftware 8/23/2013 9:08:09 AM 12564 (0x3114)
PackageID = '' InstallSoftware 8/23/2013 9:08:09 AM 12564 (0x3114)
BaseVar = '', ContinueOnError='' InstallSoftware 8/23/2013 9:08:09 AM 12564 (0x3114)
ProgramName = 'cscript.exe "C:\_SMSTaskSequence\WDPackage\Scripts\UDIWizard.wsf" /definition:"AppLists\OSA.xml"' InstallSoftware 8/23/2013 9:08:09 AM 12564 (0x3114)
SwdAction = '0001' InstallSoftware 8/23/2013 9:08:09 AM 12564 (0x3114)
Working dir 'C:\_SMSTaskSequence\WDPackage\Tools\X64' InstallSoftware 8/23/2013 9:08:09 AM 12564 (0x3114)
Executing command line: Run command line InstallSoftware 8/23/2013 9:08:09 AM 12564 (0x3114)
Microsoft (R) Windows Script Host Version 5.8 InstallSoftware 8/23/2013 9:08:09 AM 12564 (0x3114)
Copyright (C) Microsoft Corporation. All rights reserved. InstallSoftware 8/23/2013 9:08:09 AM 12564 (0x3114)
InstallSoftware 8/23/2013 9:08:09 AM 12564 (0x3114)
Property definition is now = AppLists\OSA.xml InstallSoftware 8/23/2013 9:08:09 AM 12564 (0x3114)
Microsoft Deployment Toolkit version: 6.1.2373.0 InstallSoftware 8/23/2013 9:08:09 AM 12564 (0x3114)
The task sequencer log is located at C:\Windows\CCM\Logs\SMSTSLog\SMSTS.LOG.  For task sequence failures, please consult this log. InstallSoftware 8/23/2013 9:08:09 AM 12564 (0x3114)
Using tsprogressui.exe for displaying wizard UI InstallSoftware 8/23/2013 9:08:09 AM 12564 (0x3114)
Working directory: C:\_SMSTaskSequence\WDPackage\Tools\x64 InstallSoftware 8/23/2013 9:08:09 AM 12564 (0x3114)
Saving edited configuration file as C:\Windows\CCM\Logs\SMSTSLog\OSDSetupWizard.xml InstallSoftware 8/23/2013 9:08:09 AM 12564 (0x3114)
Copying app file C:\_SMSTaskSequence\WDPackage\Scripts\AppLists\OSA.xml.app to C:\Windows\CCM\Logs\SMSTSLog\OSDSetupWizard.xml.app InstallSoftware 8/23/2013 9:08:09 AM 12564 (0x3114)
Selected wizard stage option: REFRESH InstallSoftware 8/23/2013 9:08:09 AM 12564 (0x3114)
About to run command: ServiceUI.exe -process:tsprogressui.exe OSDSetupWizard.exe /xml:"C:\Windows\CCM\Logs\SMSTSLog\OSDSetupWizard.xml" /stage:REFRESH InstallSoftware 8/23/2013 9:08:09 AM 12564 (0x3114)

我可以使用一些指示出了什麼問題。

刷新時,為了讓應用程序列表顯示在第二個嚮導中,您必須在第二個嚮導期間執行 Application Discovery 掃描。它讀入 .xml.app 文件並填充列表。

引用自:https://serverfault.com/questions/534122