!envvar

The !envvar extension displays the value of the specified environment variable.

!envvar Variable

Parameters

Variable
Specifies the environment variable whose value is displayed. Variable is not case sensitive.

DLL

Windows 2000

Unavailable

Windows XP and later

Exts.dll

Additional Information

For more information about environment variables, see Environment Variables and the Microsoft Windows SDK documentation.

Remarks

The !envvar extension works both in user mode and in kernel mode. However, in kernel mode, when you set the idle thread as the current process, the pointer to the Process Environment Block (PEB) is NULL, so it fails. In kernel mode, the !envvar extension displays the environment variables on the target computer, as the following example shows.

0:000> !envvar _nt_symbol_path
        _nt_symbol_path = srv*C:\mysyms*https://msdl.microsoft.com/download/symbols

Send comments about this topic to Microsoft