CommandLine

CommandLine specifies the path to the SynchronousCommand to be run at first logon.

Note

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

Values

Path_to_command

Specifies the path to the command to be run at first logon. Path_to_command is a string with a maximum length of 1024 characters.

This string type supports empty elements.

Valid Passes

oobeSystem

Parent Hierarchy

Microsoft-Windows-Shell-Setup | FirstLogonCommands | SynchronousCommand | CommandLine

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

Concepts

SynchronousCommand