title: How to install/update a powershell module from a local folder - set up an internal module repository
body: <p>I need to install a PowerShell module (i.e. sqlserver) on one production box, however, the production server does not have any internet connection.</p>
  
  <p>An alternative way I am using is to use save-module to save module files onto a shared folder and then copy the files from the shared folder directly to production server's PS module path</p>
  
  <pre><code>c:\program files\WindowsPowerShell\Modules
  </code></pre>
  
  <p>It works, but I am just wondering whether we can use the existing approach, i.e. install-module, something like</p>
  
  <pre><code>install-module -name sqlserver -repository "my shared folder"
  </code></pre>
  
  <p>This requirement extends to update-module as well. </p>
  
  <p>Using save-module and then copy &amp; paste seems very unreliable because I have no idea whether install-module will actually do some DLL file registration or installation.</p>
  
  <p>Can any PS gurus please give some idea how to do this, i.e. using install-module without internet connection?</p>
  
  <p>Thanks in advance for your time.</p>
  
  <p>PS: I know there is a <a href="https://stackoverflow.com/questions/41122113/install-powershell-module-in-closed-network">post</a> at SO but it does not help me.</p>