Credentials (microsoft-windows-setup-runasynchronous-runasynchronouscommand-credentials)

Credentials 指定访问由路径指定的数据映像文件时要使用的凭据。

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

子元素

设置 说明
Domain 指定用于身份验证的帐户的域。
密码 指定用于身份验证的帐户的密码。
用户名 指定用于身份验证的帐户的用户名。

有效配置阶段

windowsPE

父层次结构

Microsoft-Windows-Setup | RunAsynchronous | RunAsynchronousCommand | Credentials

应用于

有关此组件支持的 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