Skip to content

UseDeclaredVarsMoreThanAssignments should ignore $Env: #631

Closed
@javydekoning

Description

@javydekoning

Hi,

I'm using the following code in from time to time to refresh Environment/Path variables without restarting the OS/Shell:

$env:Path = [Environment]::GetEnvironmentVariable('Path','Machine')   

I think this has proper use cases in software installs and so on.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions