Skip to content

Instantly share code, notes, and snippets.

View crupest's full-sized avatar

crupest crupest

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