Maybe adding a key to the Registry:

HKEY_LOCAL_MACHINE/SYSTEM/ControlSet001/Control/Session Manager/Environment

Same for ControlSet002 and CurrentControlSet, I don't know who is the default one.