Since $PreInitialization is used early in the startup of a Wolfram Language session, not all capabilities will already be initialized. For example, remote access such as of the cloud from the desktop will not yet be available.
open allclose all
Set a value to be evaluated early every time the kernel starts:
View the current initialization value:
Properties & Relations(2)
Initialization values are stored in persistent objects:
List the existing initialization values for $PreInitialization in all editable persistence locations: