After a bit of trial and error, I discovered that these environment variables
are the additional ones reported by SET
on my Windows 8.1 system:
ALLUSERSPROFILE
APPDATA
COMPUTERNAME
CommonProgramFiles
CommonProgramFiles(x86)
CommonProgramW6432
HOMEDRIVE
HOMEPATH
LOCALAPPDATA
LOGONSERVER
PROMPT
PUBLIC
ProgramData
ProgramFiles
ProgramFiles(x86)
ProgramW6432
SESSIONNAME
SystemDrive
SystemRoot
USERDOMAIN
USERDOMAIN_ROAMINGPROFILE
I suspect that they are all automatically generated and updated by Windows,
which is probably why I couldn't find some of them listed anywhere in Windows
Registry.
I know that HOMEDRIVE
, HOMEPATH
and HOMESHARE
are updated
automatically from this TechNet Forums post.
I tried permanently changing the PROMPT
variable to something other than
$P$G
(which is the default) using SETX
and noticed that it created a new
PROMPT
environment variable in the User variables for <username>
section in the Environment Variables GUI.
On deleting that variable, my prompt was reset back to $P$G
. I noticed the
same behavior with COMPUTERNAME
environment variable. The same goes for:
CommonProgramFiles
CommonProgramW6432
PROCESSOR_ARCHITECTURE
ProgramFiles
ProgramW6432
as explained in this MSDN article about WOW64 Implementation Details.