Skip to content

Some system-defined environment variables are undefined #7399

@nathpete-msft

Description

@nathpete-msft

Environment

Windows build number: 10.0.20201.0
Windows Terminal version (if applicable): 1.3.2372.0

Any other software? Nope

Steps to reproduce

In Powershell: $Env:UserName

In cmd: echo %UserName%

It looks like this variable is defined here: HKEY_CURRENT_USER\Volatile Environment

There are a couple of other variables defined there that are also undefined: %USERDOMAIN% and %USERDNSDOMAIN%

This is only happing after updating to the preview version of Terminal 1.3. The variables are still defined in Terminal 1.2, and when running pwsh/Windows Powershell/cmd outside of Terminal.

Expected behavior

The variable should contain the current user name.

Actual behavior

The variable is undefined.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-TerminalConnectionIssues pertaining to the terminal<->backend connection interfaceIssue-BugIt either shouldn't be doing this or needs an investigation.Priority-1A description (P1)Product-TerminalThe new Windows Terminal.Resolution-Fix-CommittedFix is checked in, but it might be 3-4 weeks until a release.Severity-BlockingWe won't ship a release like this! No-siree.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions