Path (microsoft-windows-deployment-runasynchronous-runasynchronouscommand-path)
Path
specifies the path and the name of the command to execute. RunAsynchronous commands run in the user context in the auditUser configuration pass and in the system context in the specialize configuration pass.
Values
Path |
Specifies the path and the file name of the command to execute asynchronously. The path can be a local path or a Universal Naming Convention (UNC) path. If the path is a UNC path, the Credentials setting must be specified. Path is a string with a maximum length of 259 characters. |
This string type does not support empty elements. Do not create an empty value for this setting.
Valid Configuration Passes
auditUser
specialize
Parent Hierarchy
Microsoft-Windows-Deployment | RunAsynchronous | RunAsynchronousCommand | Path
Applies To
For a list of the supported Windows editions and architectures this component supports, see Microsoft-Windows-Deployment.
XML Example
The following XML output shows how to set asynchronous commands.
The first command runs an application on the local hard drive. The command includes the environment variable %ProgramFiles%. The second command runs a command from the network.
<RunAsynchronous>
<RunAsynchronousCommand wcm:action="add">
<Description>AsynchCommand1</Description>
<Order>1</Order>
<Path>%ProgramFiles%\FabriKam\FabriKam First Run Application.exe</Path>
</RunAsynchronousCommand>
<RunAsynchronousCommand wcm:action="add">
<Credentials>
<Domain>MyDomain</Domain>
<Password>MyPassword</Password>
<Username>MyUsername</Username>
</Credentials>
<Description>SynchCommand2-FromNetwork</Description>
<Order>2</Order>
<Path>\\network\server\share\filename</Path>
</RunAsynchronousCommand>
</RunAsynchronous>