Define scripts that are executed when the user exits from last session.
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: /logoff
Note: -
* Enabled: The scripts in the text entry are executed at user logoff time.
* Disabled: The scripts will be skipped.
The set of scripts are per session, and refreshed only on new session creation.
Supported on Ubuntu 20.04, 22.04, 22.10.
An Ubuntu Pro subscription on the client is required to apply this policy.
Registry Hive | HKEY_CURRENT_USER |
Registry Path | Software\Policies\Ubuntu\scripts\logoff |
Value Name | metaValues |
Value Type | REG_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"}} |
Logoff scripts
Registry Hive | HKEY_CURRENT_USER |
Registry Path | Software\Policies\Ubuntu\scripts\logoff |
Value Name | all |
Value Type | REG_MULTI_SZ |
Default Value |
Registry Hive | HKEY_CURRENT_USER |
Registry Path | Software\Policies\Ubuntu\scripts\logoff |
Value Name | Override22.10 |
Value Type | REG_SZ |
Default Value | false |
True Value | true |
False Value | false |
Registry Hive | HKEY_CURRENT_USER |
Registry Path | Software\Policies\Ubuntu\scripts\logoff |
Value Name | 22.10 |
Value Type | REG_MULTI_SZ |
Default Value |
Registry Hive | HKEY_CURRENT_USER |
Registry Path | Software\Policies\Ubuntu\scripts\logoff |
Value Name | Override22.04 |
Value Type | REG_SZ |
Default Value | false |
True Value | true |
False Value | false |
Registry Hive | HKEY_CURRENT_USER |
Registry Path | Software\Policies\Ubuntu\scripts\logoff |
Value Name | 22.04 |
Value Type | REG_MULTI_SZ |
Default Value |
Registry Hive | HKEY_CURRENT_USER |
Registry Path | Software\Policies\Ubuntu\scripts\logoff |
Value Name | Override20.04 |
Value Type | REG_SZ |
Default Value | false |
True Value | true |
False Value | false |
Registry Hive | HKEY_CURRENT_USER |
Registry Path | Software\Policies\Ubuntu\scripts\logoff |
Value Name | 20.04 |
Value Type | REG_MULTI_SZ |
Default Value |