REGEXPANDSZ
REGEXPANDSZ, commonly written as REG_EXPAND_SZ, is a Windows Registry data type used to store a null-terminated Unicode string that can contain environment-variable references. Strings stored as REG_EXPAND_SZ may include placeholders like %SystemRoot% or %USERPROFILE%, allowing the value to adapt to the system or user environment.
When a value of this type is read, the registry stores the original string with the environment
REG_EXPAND_SZ differs from REG_SZ, which stores a plain, non-expandable string. The expandable form is useful for
Common usage includes configuration paths or environment-sensitive values in startup scripts, system settings, and application configurations
Examples of typical content include "%SystemRoot%\\System32" or "%USERPROFILE%\\Documents". After expansion, these resolve to the actual absolute
See also: Windows Registry, REG_SZ, ExpandEnvironmentStrings.