Skip to content

Instantly share code, notes, and snippets.

View marcandjulien's full-sized avatar

Marc-André Julien marcandjulien

View GitHub Profile
function Add-EnvPath {
param(
[Parameter(Mandatory=$true)]
[string] $Path,
[ValidateSet('Machine', 'User', 'Session')]
[string] $Container = 'Session'
)
if ($Container -ne 'Session') {