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

Credentials 指定访问 路径指定的数据映像文件时要使用的凭据。Credentials specifies the credentials to use when accessing a data image file specified by Path.

所有 RunAsynchronous 命令都在系统上下文中运行。All RunAsynchronous commands run in the system context.

子元素Child Elements

设置Setting 说明Description
Domain 指定用于身份验证的帐户的域。Specifies the domain of the account used for authentication.
密码Password 指定用于身份验证的帐户的密码。Specifies the password of the account used for authentication.
用户名Username 指定用于身份验证的帐户的用户名。Specifies the user name of the account used for authentication.

有效的配置阶段Valid Configuration Passes

windowsPEwindowsPE

父层次结构Parent Hierarchy

Microsoft-Windows-设置 | RunAsynchronous | RunAsynchronousCommand | 凭据Microsoft-Windows-Setup | RunAsynchronous | RunAsynchronousCommand | Credentials

适用于Applies To

有关此组件支持的 Windows 版本和体系结构的列表,请参阅 Microsoft-Windows-设置For the list of the supported Windows editions and architectures that this component supports, see Microsoft-Windows-Setup.

XML 示例XML Example

下面的 XML 输出显示了如何配置要运行的异步命令。The following XML output shows how to configure asynchronous commands to run.

<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>

RunAsynchronousCommandRunAsynchronousCommand