Wiki or Instruction on installing poshcode script

Welcome Forums General PowerShell Q&A Wiki or Instruction on installing poshcode script

This topic contains 0 replies, has 1 voice, and was last updated by  Forums Archives 7 years ago.

  • Author
  • #5297

    Points: 0
    Rank: Member

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


    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.

The topic ‘Wiki or Instruction on installing poshcode script’ is closed to new replies.