Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
$modulesDir = $env:PSModulePath -split ":" | Select -First 1
Move-Item .\MyModule $modulesDir
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