This topic describes the actions that are available to unattended setup scripts.
The following types of actions are available to unattended setup scripts:
The following table lists the unattended setup script actions in the Common category.
| Action | Purpose | Usage |
|---|---|---|
| Set sandbox ID | Sets the sandbox ID for the console. |
|
| Add network credentials | Adds credentials for accessing a network share to the console. Credentials might be needed to register applications, update the console OS, or run external scripts or executables that are located on a protected network share. The password is encoded for parsing reasons (not for security). You should use low-access credentials to sign in unless the script file is carefully protected. |
|
| Update console OS recovery | Updates the console's OS recovery from a recovery stored on a network share. The console must have access to the network share (either because the share is unprotected or because the console has the appropriate credentials). |
|
| Sign in a user | Signs in to an existing Xbox Live user account. The password is encoded for parsing reasons (not for security). You should use low-access credentials to sign in unless the script file is carefully protected. |
|
| Do custom action | Creates a custom action within the script.Unattended setup scripts are batch files that run on the console. Any commands that are available on the console and can be run from a command-line prompt or a batch file can be run in a custom action. PC-side tools such as Application Management (xbapp.exe) are not available in scripts. To determine whether a command can be used in a script, run the command using the Execute (xbrun.exe) command-line tool to verify that it is present on the console and runs as expected. |
|
The following table lists the unattended setup script actions in the Application category.
| Action | Purpose | Usage |
|---|---|---|
| Register an application from a network share | Registers an app on the console from a network share. The console must have access to the network share (either because the share is unprotected or because the console has the appropriate credentials). |
|
| Install a packaged build | Installs a packaged app. |
|
| Copy and register an application on the title scratch drive | Copies an app on the console's title scratch drive and registers it. The console must have access to the network share (either because the share is unprotected or because the console has the appropriate credentials). |
|
| Move an application from one drive to another | Moves the specified app to a different hard drive. |
|
| Copy an application from one drive to another | Copies the specified app to a different hard drive. |
|
| Move all applications from one drive to another | Moves all apps on the specified hard drive to a different hard drive. Apps that are registered on the source drive will be registered on the destination drive. |
|
| Copy all applications from one drive to another | Copies all apps on the specified hard drive to a different hard drive. The copied apps will not be registered on the destination drive. |
|
| Register an application already present on a drive | Registers an app that already exists on the specified drive. |
|
| Register all applications present on a drive | Registers all apps on the specified drive. |
|
| Launch an application | Launches an app on the console (by AUMID). |
|
The following table lists the unattended setup script actions in the User category.
| Action | Purpose | Usage |
|---|---|---|
| Set the default controller pairing | Sets the type of user controller to use for automatic sign-in. |
|
| Set the default user | Sets the default user for the dev kit. | Select the predefined user from the drop-down list or specify a new value. |
| Create and sign in a new Xbox Live account | Creates a new Xbox Live test account and signs them in to the dev kit. | Specify the email address, password, and additional information for the new test account. |
| Sign in a user | Signs in to an existing Xbox Live user account. The password is encoded for parsing reasons (not for security). You should use low-access credentials to sign in unless the script file is carefully protected. |
|
The following table lists the unattended setup script actions in the Settings category. Most of these settings can also be changed through the Configuration (xbconfig.exe) command-line tool and Xbox Device Portal (Windows Device Portal on Xbox).
| Action | Purpose | Usage |
|---|---|---|
| Import settings from a file | Imports settings from a predefined file stored on the dev kit or on a network share. |
|
| Set sandbox ID | Sets the sandbox ID for the console. |
|
| Set autoboot setting | Configures the console to boot when power is connected. |
|
| Set screen dim setting | Sets the time interval (in minutes) for the idle screen dimmer. |
|
| Set power mode setting | Configures the console's power mode. |
|
| Set automatic shutdown setting | Sets the idle time interval (in minutes) after which the console will be shut down. |
|
| Set TV resolution | Sets the TV resolution. |
|
| Set the OS recovery update policy | Specifies whether the console OS is updated automatically. |
|
| Set the host name for the console | Sets the hostname for the console. The maximum length for a hostname is 15 characters. Hostnames can include letters, digits, and dashes. |
|
| Set the default home experience for the console | Determines whether to launch the developer experience or the retail experience by default. |
|
| Allow connections from the Xbox App and Dev Mode Companion App | Determines whether to allow connections from the Xbox app and the Dev Mode Companion app. |
|
| Set the profiling mode for PIX | Sets the profiling mode for PIX. |
|
| Allow extra memory for titles | Specifies how much extra memory to give titles. |
|
| Set what kind of crash dumps are gathered | Sets which types of crash dumps are gathered. |
|
| Set the default storage device for deployments | Sets the default storage device to use for deployments. | Select the default storage device from the drop-down list or specify a new value. |
| Allow high dynamic range if the display supports it | Specifies whether the dev kit should use high dynamic range (HDR) if it is supported by the connected display. |
|
| Set the default controller pairing | Sets the type of user controller to use for automatic sign-in. |
|
| Set the default user | Sets the default user for the dev kit. | Select the predefined user from the drop-down list or specify a new value. |
| Set the geographic region | Sets the geographic region for the dev kit. |
|
| Set the preferred language | Sets the preferred langugage for the dev kit. |
|
| Set the preferred timezone | Sets the preferred timezone for the dev kit. |
|
| Block further unattended scripts | Prevents any further unattended scripts from running on the console. |
|
| Block unattended scripts on USB drives | Prevents unattended scripts on a USB drive from running on the console. |
|
| Run unattended scripts immediately | Specifies whether to run unattended scripts immediately after the console starts up. This setting removes the option to cancel a script. |
|
The following table lists the unattended setup script actions in the Utilities category.
| Action | Purpose | Usage |
|---|---|---|
| Run another script | Runs another script located on the console or a network share. |
|
| Run an executable | Runs another executable located on the console or a network share. |
|
| Configure Xbox Device Portal | Configures the console to use Xbox Device Portal. The password is encoded for parsing reasons (not for security). You should use low-access credentials to sign in unless the script file is carefully protected. |
|
| Add Xbox Device Portal custom certificate | Adds a custom certificate to Xbox Device Portal to circumvent the browser warning about a self-signed site certificate. For more information about how to generate a custom certificate, see Use a custom SSL certificate. |
|
| Show notification | Displays a custom system notification on the console. |
|
| Add wait | Adds a wait time to the unattended script, in seconds. |
|
| Verbose logging | Enables verbose logging for the unattended script. You should use this option only to debug scripts. |
|
| Do custom action | Creates a custom action within the script.Unattended setup scripts are batch files that run on the console. Any commands that are available on the console and can be run from a command-line prompt or a batch file can be run in a custom action. PC-side tools such as Application Management (xbapp.exe) are not available in scripts. To determine whether a command can be used in a script, run the command using the Execute (xbrun.exe) command-line tool to verify that it is present on the console and runs as expected. |
|
| Assign a script to a front panel button (Xbox One X Devkit) | Assigns a script from a network share or USB to a specific button on the front panel. | Select a script to assign to the button. |