This documentation is archived and is not being maintained.


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.

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



Specifies the path to the command to execute.


Describes the command to be run.


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.

   <SynchronousCommand wcm:action="add">
   <SynchronousCommand wcm:action="add">

See Also