Skip to content

Update-SessionEnvironment does not remove variables that were removed from user/system environment #1

@NorthLake

Description

@NorthLake

Steps to reproduce

  1. Set user or system environment variable TEST to test
  2. Open a Powershell terminal
  3. Remove the TEST variable from the user/system environment
  4. Run Update-SessionEnvironment in the Powershell window
  5. Run echo $env:TEST

Expected result

No output, env var was removed

Actual result

Test variable still exists in the PowerShell context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions