how to get install-module in ps version 4

Welcome Forums General PowerShell Q&A how to get install-module in ps version 4

This topic contains 2 replies, has 3 voices, and was last updated by

1 year, 3 months ago.

  • Author
  • #84746

    Points: 0
    Rank: Member

    I am on powershell version 4 . How to install modules like cchoco in powershell version 4 .In version 5 we have install-module but m not able to find anything like that for version 4 .Updating powershell is not an option.

    PS > $PSVersionTable.PSVersion

    Major Minor Build Revision
    —– —– —– ——–
    4 0 -1 -1

    Thanks in advance.

  • #84764

    Points: 0
    Rank: Member

    Install-Module was introduced with Powershell v5 if I remember correctly. It, and the other module/package management cmdlets aren't available in PowerShell v4.

    You'll need to upgrade at least one machine to PowerShell v5.1. You can download to that machine and copy out to other machines – assuming that the module you want will work with PowerShell v4

  • #84844

    Points: 1,071
    Helping Hand
    Rank: Community Hero

    No need to upgrade to PoSH v5 for this.
    You can get PowerShellGet, which is what provides this in PoSH v4. You just have to download and install it.


    I have it on all my PoSH v4 installs as a default.

    But, yep, if you can go to PoSH v5, it's best to do so.

The topic ‘how to get install-module in ps version 4’ is closed to new replies.

denizli escort samsun escort muğla escort ataşehir escort kuşadası escort