-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
area-aboutArea - About_ topicsArea - About_ topics
Description
Type of issue
Outdated article
Feedback
In the PowerShell 7.5 documentation on manipulating Environment Variables, it suggests that you can clear an environment variable by setting it to an empty string or $null
in at least these sections:
- Use the variable syntax
- Use the
System.Environment
methods - Set environment variables with
SetEnvironmentVariable()
As noted in PowerShell/PowerShell#21186 (comment), PowerShell 7.5 introduced the ability to set environment variables to an empty string instead of unsetting the variable.
It would be wonderful if the documentation could reflect this new enhancement!
Page URL
Content source URL
Author
Platform Id
a3aeb832-03f5-06f5-5d5e-5a0a9f660dcb
Document Id
dfc13aff-02f5-c1ea-d736-68a55241ab52
Metadata
Metadata
Assignees
Labels
area-aboutArea - About_ topicsArea - About_ topics