Wiki or Instruction on installing poshcode script

by thebilgerat at 2012-11-21 13:06:23

Hi!

I am looking for a concise explanation on where custom scripts "go" so that powershell can access them.

For example, the poshcode script.
by DonJ at 2012-11-21 13:11:07
If you’re referring to a module, look at the PSModulePath environment variable. So, usually, if you have a module named PoshCode it would go in:

[My ]Documents\WindowsPowerShell\Modules\PoshCode\PoshCode.psm1

But check the environment variable to ensure Documents\WindowsPowerShell\Modules is listed.

It’s important that the module folder name and filename match. This is also accessible in PowerShell’s help files on modules and script modules.