Welcome to Shaun Luttin's public notebook. It contains rough, practical notes. The guiding idea is that, despite what marketing tells us, there are no experts at anything. Sharing our half-baked ideas helps everyone. We're all just muddling thru. Find out more about our work at bigfont.ca.

PowerShell and Environmental Variables

Tags: powershell

Permanently modify Path variable

[Environment]::SetEnvironmentVariable("Path", `
    $env:Path + ";C:\mongodb\bin", ` 
    [System.EnvironmentVariableTarget]::Machine)

See also: http://stackoverflow.com/a/2571200/1108891