Search notes:

Registry: HKEY_CURRENT_USER\Volatile Environment\n

The n in this registry key seems to correspond to the session id.
Two environment variables are found under this registry key:

SESSIONNAME

The value of SESSIONNAME (for example: Console) seems to correspond to the output of query session.

Index