Username
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
Username
specifies the user name of the account to use for authentication.
Values
Username |
Specifies the name of the account to use for authentication. Username is a string. |
This string type does not support empty elements. Do not create an empty value for this setting.
Valid Passes
auditUser
specialize
Parent Hierarchy
Microsoft-Windows-Deployment | RunSynchronous | RunSynchronousCommand | Credentials | Username
Applies To
For the list of the supported Windows editions and architectures that this component supports, see Microsoft-Windows-Deployment.
XML Example
The following XML output shows how to set synchronous commands.
<RunSynchronous>
<RunSynchronousCommand wcm:action="add">
<Credentials>
<Domain>MyDomain</Domain>
<Password>MyPassword</Password>
<Username>MyUsername</Username>
</Credentials>
<Description>MySynchCommand1</Description>
<Order>1</Order>
<Path>\\network\server\share\filename</Path>
<WillReboot>OnRequest</WillReboot>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Credentials>
<Domain>MyDomain</Domain>
<Password>MyPassword</Password>
<Username>MyUsername</Username>
</Credentials>
<Description>MySynchCommand2</Description>
<Order>2</Order>
<Path>\\network\server\share\filename</Path>
<WillReboot>OnRequest</WillReboot>
</RunSynchronousCommand>
</RunSynchronous>