powershell

Install powershell module in closed network


I have a simple question but yet I can not find anywhere answer for it.

I am using powershell 5 and I'm working in closed environment, without ability to connect to internet, I want to install on my machine manually module, basically any module that is available to download for example posh-ssh.

Can it be done? Lets say save module here and install?


Solution

  • Let me give you two approaches in this case.

    1. You can download all the modules whatever you need from the gallery and keep it in some share box in one of your systems. Then just install the modules from that share folder. So it will act as a separate repository for you.
    2. You can create an internal FTP and keep it over there . Then using powershell you can download all of them easily and it will be accessible also in the closed network.

    Hope it helps.