-
Notifications
You must be signed in to change notification settings - Fork 110
Path variable is corrupted if PsDscRunAsCredential is used #171
Copy link
Copy link
Open
Labels
0 - TriagingIssue is accepted, but a milestone has yet to be added for the issue.Issue is accepted, but a milestone has yet to be added for the issue.BugIssues where something has happened which was not expected or intended.Issues where something has happened which was not expected or intended.Up For GrabsIssues that are available by the community to work on.Issues that are available by the community to work on.
Metadata
Metadata
Assignees
Labels
0 - TriagingIssue is accepted, but a milestone has yet to be added for the issue.Issue is accepted, but a milestone has yet to be added for the issue.BugIssues where something has happened which was not expected or intended.Issues where something has happened which was not expected or intended.Up For GrabsIssues that are available by the community to work on.Issues that are available by the community to work on.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Path variable is corrupted if PsDscRunAsCredential is used
Hi,
i am installing packages under a specific Account using "PsDscRunAsCredential".
Unfortunately during the package installation process the the $env:Path variable is reset to only the "Machine" Path Variables by:
$env:Path = [Environment]::GetEnvironmentVariable('Path','Machine')This means all the User specific path variable entries are missing subsequently including all following resources.
To Reproduce
Use "cChocoPackageInstaller" with "PsDscRunAsCredential":
Expected behavior
The Path Variable should be set correctly if it has to be refreshed
From here:
"The Path is constructed from the system path, which can be viewed in the System Environment Variables field in the System dialog box. The User path is appended to the system path."
Software (please complete the following information):