Path (microsoft-windows-deployment-runsynchronous-runsynchronouscommand-path)

Path specifies the path and the name of the command to run. RunSynchronous commands run in the user context in the auditUser configuration pass and in the system context in the specialize configuration pass.

Warning   Do not add commands that shut down or reboot the computer; instead, use the setting: Microsoft-Windows-Deployment\RunSynchronous\RunSynchronousCommand\WillReboot.



Specifies the path and the file name of the command to run synchronously. The path can be a local path or a UNC path. If the path is a UNC path, the Credentials 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



Parent Hierarchy

Microsoft-Windows-Deployment | RunSynchronous | RunSynchronousCommand | Path

Applies To

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

XML Example

The following XML output shows how to set synchronous 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.

   <RunSynchronousCommand wcm:action="add">
      <Path>%ProgramFiles%\FabriKam\FabriKam First Run Application.exe</Path>
   <RunSynchronousCommand wcm:action="add">