VMware Cloud Community
BartLievers
Contributor
Contributor

How to install latest PowerCLI in a server that has no internet connection ?

Hi,

I would like to be able to install the latest PowerCLi on a windows server that has no internet connection.

I tried it by running

Install-Module -Name VMware.PowerCLI

And then copying the files to the server that has no internet connection.

After installing powershell 5 on it, it requests also the nuget cmdlets.... and ... for that it needs internet connections....

This is a hassle... and doesn't make it attractive to use the latest version.

So what is the easiest way to  install the latest PowerCLi on a system that has no internet connection ?

Reply
0 Kudos
3 Replies
LucD
Leadership
Leadership

Have a look at Updating PowerCLI through the PowerShell Gallery, it describes how you can use Save-Module  in such a situation.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
BartLievers
Contributor
Contributor

Hi,

I've tried that.

But I get the message that powershell needs the nuget module to function when I try to install the saved module on the server.

pastedImage_0.png

Reply
0 Kudos
LucD
Leadership
Leadership

Have a look at Bootstrap both NuGet provider and NuGet.exe or bootstrap only NuGet provider

It describes how to download and install NuGet.exe


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos