Discussion Locked

Microsoft SMS variables

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I would like to know if there are any Window NT variables that could help me identify everything there is to know about a particular machine, software and version numbers associated with each software product through SMS queries. Also is there a variable I could query on to identify what type of Window/NT servers I have?

3 replies

by russ werner

Windows NT has three levels of environment variables, the system environment variables, the user environment variables, and the environment variables that are set in the AUTOEXEC.BAT file. There are also some predefined environment variables that are set when the user logs on.
System environment variables can be viewed in Control Panel / System / Environment. These variables apply to all users and cannot be changed by any user. There are some predefined variables, some of which do not appears in the System dialog box:
USERNAME
USERDOMAIN
USERPROFILE
WINDIR
OS
Os2LibPath
Path
PATHEXT
ComSpec
PROCESSOR_ARCHITECTURE
PROCESSOR_LEVEL
NUMBER_OF_PROCESORS
PROCESSOR_IDENTIFIER
PROCESSOR_REVISION
PROMPT
HOMEPATH
HOMEDRIVE
HOMESHARE
LOGONSERVER
COMPUTERNAME
SystemRoot
SystemDrive
If the home directory uses universal naming conventions:
HOMESHARE=\\\
If the home directory is a local path:
HOMESHARE=
All above environment variables are always present and therefore may be used in log on scripts.
User environment variables can be viewed from Control Panel also. The user may add, delete or modify the user environment variables. These variables take precedence over system environment variables. The user path is appended to the system path.
All environment variables and the paths set in the AUTOEXEC.BAT file are used to create the Windows NT environment. Any paths in the AUTOEXEC.BAT file are append to the system path.
Environment variables are set in the following order:
- System variables
- AUTOEXEC.BAT variables
- User variables
The Path is constructed by appending the User path to the System path and then appending the path from the AUTOEXEC.BAT file.

If you type SET from a CMD.EXE prompt, you will see the environment variables

Hope this helps...

This discussion is closed to new replies.