Skip to content

Instantly share code, notes, and snippets.

@xiaoyvr
Last active November 1, 2017 11:49
Show Gist options
  • Save xiaoyvr/4154bbf4b2a9375f424bf3871c8bedf9 to your computer and use it in GitHub Desktop.
Save xiaoyvr/4154bbf4b2a9375f424bf3871c8bedf9 to your computer and use it in GitHub Desktop.
get windows laptop work without admin priviledge
$path = $env:PATH
$excludes = @('C:\Program Files\nodejs\', 'C:\Program Files\Git\cmd', 'C:\Program Files (x86)\Yarn\bin')
$path = ($path.Split(';') | Where-Object {
-not $excludes.contains($_)
}) -join ';'
$env:PATH = "C:\Program Files (x86)\Microsoft VS Code\bin;$path"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment