Skip to content

Instantly share code, notes, and snippets.

@jrsconfitto
Last active December 13, 2015 21:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jrsconfitto/4977420 to your computer and use it in GitHub Desktop.
Save jrsconfitto/4977420 to your computer and use it in GitHub Desktop.
Useful Powershell commands that i can never remember!

PowerShell tips

Because i can never remember stuff and then i end up walking down the same old road until i get to that stackoverflow answer i've already starred.

Environment variables

List them: Get-ChildItem Env: - Creating and modifying environment variables

Get your path in Powershell: $env:path
Make that path readable: $env:path.split(‘;’)
And sort it: $env:path.split(‘;’) | sort

Execution-Policy stuff

If you're still getting prompted after Unrestricted: Nothing is ever enough for them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment