Startup scripts

Define scripts that are executed on machine boot, once the GPO is downloaded.
Those scripts are ordered, one by line, and relative to SYSVOL/scripts/ubuntu/ directory.
Scripts from this GPO will be appended to the list of scripts referenced higher in the GPO hierarchy.


- Type: scripts
- Key: /startup

Note: -
* Enabled: The scripts in the text entry are executed at startup time.
* Disabled: The scripts will be skipped.
The set of scripts are per boot, and refreshed only on new boot of the machine.


Supported on Ubuntu 20.04, 22.04, 22.10.

An Ubuntu Pro subscription on the client is required to apply this policy.

Supported on: Ubuntu

Registry HiveHKEY_LOCAL_MACHINE
Registry PathSoftware\Policies\Ubuntu\scripts\startup
Value NamemetaValues
Value TypeREG_SZ
Enabled Value{"20.04":{"strategy":"append"},"22.04":{"strategy":"append"},"22.10":{"strategy":"append"},"all":{"strategy":"append"}}
Disabled Value{"20.04":{"strategy":"append"},"22.04":{"strategy":"append"},"22.10":{"strategy":"append"},"DISABLED":{},"all":{"strategy":"append"}}

Startup scripts



Registry HiveHKEY_LOCAL_MACHINE
Registry PathSoftware\Policies\Ubuntu\scripts\startup
Value Nameall
Value TypeREG_MULTI_SZ
Default Value
Override value for 22.10:
Registry HiveHKEY_LOCAL_MACHINE
Registry PathSoftware\Policies\Ubuntu\scripts\startup
Value NameOverride22.10
Value TypeREG_SZ
Default Valuefalse
True Valuetrue
False Valuefalse


Registry HiveHKEY_LOCAL_MACHINE
Registry PathSoftware\Policies\Ubuntu\scripts\startup
Value Name22.10
Value TypeREG_MULTI_SZ
Default Value
Override value for 22.04:
Registry HiveHKEY_LOCAL_MACHINE
Registry PathSoftware\Policies\Ubuntu\scripts\startup
Value NameOverride22.04
Value TypeREG_SZ
Default Valuefalse
True Valuetrue
False Valuefalse


Registry HiveHKEY_LOCAL_MACHINE
Registry PathSoftware\Policies\Ubuntu\scripts\startup
Value Name22.04
Value TypeREG_MULTI_SZ
Default Value
Override value for 20.04:
Registry HiveHKEY_LOCAL_MACHINE
Registry PathSoftware\Policies\Ubuntu\scripts\startup
Value NameOverride20.04
Value TypeREG_SZ
Default Valuefalse
True Valuetrue
False Valuefalse


Registry HiveHKEY_LOCAL_MACHINE
Registry PathSoftware\Policies\Ubuntu\scripts\startup
Value Name20.04
Value TypeREG_MULTI_SZ
Default Value

ubuntu.admx

Administrative Templates (Computers)