路径 (microsoft-windows-setup-runasynchronous-runasynchronouscommand-path)

Path 指定要执行的命令的路径和名称。

所有 RunAsynchronous 命令都在系统上下文中运行。

Path_to_command

指定要异步执行的命令的路径和文件名。 该路径可以是本地路径或 UNC 路径。 如果路径是 UNC 路径,则必须指定凭据。 Path_to_command 是字符串。

该字符串类型不支持空元素。 请勿为该设置创建空值。

有效配置阶段

windowsPE

父层次结构

microsoft-windows-setup- | RunAsynchronous | RunAsynchronousCommand | Path

应用于

有关此组件支持的受支持 Windows 版本和体系结构的列表,请参阅 microsoft-windows-setup-

XML 示例

以下 XML 输出演示如何配置要运行的异步命令。

<RunAsynchronous>
   <RunAsynchronousCommand>
      <Order>1</Order>
      <Path>\\MyNetworkShare\MyApplication.exe</Path>
      <Description>DescriptionOfMyApplication</Description>
      <Credentials>
         <Domain>FabrikamDomain</Domain>
         <UserName>MyUserName</UserName>
         <Password>MyPassword</Password>
      </Credentials>
   </RunAsynchronousCommand>
   <RunAsynchronousCommand>
      <Order>2</Order>
      <Path>C:\AnotherApplication.exe</Path>
      <Description>DescriptionOfMyApplication</Description>
   </RunAsynchronousCommand>
</RunAsynchronous>

RunAsynchronousCommand