Skip to content

Instantly share code, notes, and snippets.

@chriskuech
Created June 8, 2019 21:27
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 chriskuech/a97c67d02278e93a8318bdd06dfc1579 to your computer and use it in GitHub Desktop.
Save chriskuech/a97c67d02278e93a8318bdd06dfc1579 to your computer and use it in GitHub Desktop.
$modulesDir = $env:PSModulePath -split ":" | Select -First 1
Move-Item .\MyModule $modulesDir
@markwiese
Copy link

Hi. I believe the character used for the split should be a semi-colon rather than a colon.

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