Wiki or Instruction on installing poshcode script

This topic contains 0 replies, has 1 voice, and was last updated by Profile photo of Forums Archives Forums Archives 5 years, 4 months ago.

  • Author
    Posts
  • #5297

    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.

You must be logged in to reply to this topic.