This documentation is archived and is not being maintained.

SynchronousCommand

SynchronousCommand specifies a command to run the first time a user logs on to the computer, its description, and the order in which it is run. FirstLogonCommands are run after logon but before the user sees the desktop.

noteNote
FirstLogonCommands only run when an account with administrator privilege logs on to the computer. If a non-administrator account logs onto the computer, commands listed in the FirstLogonCommands settings are not executed.

Child Elements

 

CommandLine

Specifies the path to the command to execute.

Description

Describes the command to be run.

Order

Specifies the order in which the command is run.

Valid Passes

Parent Hierarchy

Applies To

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

XML Example

The following XML output shows how to set first logon commands.

<FirstLogonCommands>
   <SynchronousCommand wcm:action="add">
      <CommandLine>c:synccommands\command1.exe</CommandLine>
      <Description>Description_of_command1</Description>
      <Order>1</Order>
   </SynchronousCommand>
   <SynchronousCommand wcm:action="add">
      <CommandLine>c:synccommands\command2.exe</CommandLine>
      <Description>Description_of_command2</Description>
      <Order>2</Order>
   </SynchronousCommand>
</FirstLogonCommands>

See Also

Show: