Environment variable - Path This topic contains 3 replies, has 2 voices, and was last updated by marcoolinho Pappas 2 years, 8 months ago. Author Posts October 18, 2015 at 10:46 pm #31003 marcoolinho PappasParticipant Hello good folks. Would anyone be so kind and help me with setting or appending a parth variable in Powershell? Is there an elegant way to do it other than to use some function which edits a registry value? By elegant way I mean some new way in Powershell v5. 🙂 Thank you very much. October 18, 2015 at 11:35 pm #31004 Alexander JohanssonParticipant Maybe you could use the .NET method SetEnvironmentVariable? Call it from PowerShell: [System.Environment]::SetEnvironmentVariable() https://msdn.microsoft.com/en-us/library/z46c489x(v=vs.110).aspx /Alexander October 21, 2015 at 12:17 am #31076 marcoolinho PappasParticipant Great suggestion, thank you. November 3, 2015 at 5:42 am #31618 marcoolinho PappasParticipant $Env:Path = $Env:Path + ";C:\SomeFolder I found this solution also, if anybody ever needs it. Author Posts You must be logged in to reply to this topic.