SynchronousCommand specifies a single command to run the first time a user logs on to the computer. FirstLogonCommands are run after logon but before the user sees the desktop.

If you create a user account that does not include administrative privileges, the following commands may not run:

Child Elements

CommandLine

Specifies the path to the command to run.

Description

Describes the command to run.

Order

Specifies the order in which the command is run.

RequiresUserInput

Specifies whether the first logon command launches a dialog box that requires input from the user. This can reduce the delay of the "Preparing Your Desktop" screen.

Valid Configuration Passes

oobeSystem

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.

  Copy Code
<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