我有一个 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 文件并填充列表。