Partager via


Credentials

Applies To: Windows 7, Windows 8, Windows 8.1, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Vista

Credentials specifies the credentials used when accessing an application over a network. Credentials is used to authenticate access to a location specified by Path.

All RunSynchronous commands run in the system context.

Child Elements

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 Passes

windowsPE

Parent Hierarchy

Microsoft-Windows-Setup | RunSynchronous | RunSynchronousCommand | Credentials

Applies To

For the list of the supported Windows editions and architectures that this component supports, see Microsoft-Windows-Setup.

XML Example

The following XML output shows how to set synchronous commands.

<RunSynchronous>
   <!-- First synchronous command to execute -->
   <RunSynchronousCommand>
      <Order>1</Order>
      <Path>\\MyNetworkShare\MyApplication.exe</Path>
      <Description>DescriptionOfMyApplication</Description>
      <Credentials>
         <Domain>FabrikamDomain</Domain>
         <UserName>MyUserName</UserName>
         <Password>MyPassword</Password>
      </Credentials>
   </RunSynchronousCommand>
<!-- Second synchronous command to execute -->
   <RunSynchronousCommand>
      <Order>2</Order>
      <Path>C:\AnotherApplication.exe</Path>
      <Description>DescriptionOfMyApplication</Description>
   </RunSynchronousCommand>
</RunSynchronous>

See Also

Concepts

RunSynchronousCommand