How to install PowerCLI permanently on a computer with no internet
I downloaded the PowerCLI from VMware's website.
https://my.vmware.com/web/vmware/details?downloadGroup=PCLI650R1&productId=614
Once downloaded their is an executable PowerCLI.exe. If I run this executable I get a terminal (that is not cmd/powershell) that pops up with all the PowerCLI commands available.
The problem is when I open a real PowerShell terminal, these commands disappear and are unavailable.
While looking at the folder I downloaded from VMware's website I noticed a script called "initizilize_environment.ps1", after I run this script (its about 5-10 mins)I get access to the PowerCLI commands again. The problem is I loose access to these commands once the PowerShell terminal is closed. This is a big problem as I'm trying to automate the virtual environment and having to wait 5-10 minutes defeats the point.
I would install the PowerCLI via the following, but due to security restrictions the machine cannot have access to the internet.Save-Module -Name VMware.PowerCLI -Path <path>
Any help is much appreciated.
powershell vmware powercli
add a comment |
I downloaded the PowerCLI from VMware's website.
https://my.vmware.com/web/vmware/details?downloadGroup=PCLI650R1&productId=614
Once downloaded their is an executable PowerCLI.exe. If I run this executable I get a terminal (that is not cmd/powershell) that pops up with all the PowerCLI commands available.
The problem is when I open a real PowerShell terminal, these commands disappear and are unavailable.
While looking at the folder I downloaded from VMware's website I noticed a script called "initizilize_environment.ps1", after I run this script (its about 5-10 mins)I get access to the PowerCLI commands again. The problem is I loose access to these commands once the PowerShell terminal is closed. This is a big problem as I'm trying to automate the virtual environment and having to wait 5-10 minutes defeats the point.
I would install the PowerCLI via the following, but due to security restrictions the machine cannot have access to the internet.Save-Module -Name VMware.PowerCLI -Path <path>
Any help is much appreciated.
powershell vmware powercli
You are not using the current version of PowerCLI there are more options to install current versions of PowerCLI
– Ramhound
Jan 17 at 3:04
add a comment |
I downloaded the PowerCLI from VMware's website.
https://my.vmware.com/web/vmware/details?downloadGroup=PCLI650R1&productId=614
Once downloaded their is an executable PowerCLI.exe. If I run this executable I get a terminal (that is not cmd/powershell) that pops up with all the PowerCLI commands available.
The problem is when I open a real PowerShell terminal, these commands disappear and are unavailable.
While looking at the folder I downloaded from VMware's website I noticed a script called "initizilize_environment.ps1", after I run this script (its about 5-10 mins)I get access to the PowerCLI commands again. The problem is I loose access to these commands once the PowerShell terminal is closed. This is a big problem as I'm trying to automate the virtual environment and having to wait 5-10 minutes defeats the point.
I would install the PowerCLI via the following, but due to security restrictions the machine cannot have access to the internet.Save-Module -Name VMware.PowerCLI -Path <path>
Any help is much appreciated.
powershell vmware powercli
I downloaded the PowerCLI from VMware's website.
https://my.vmware.com/web/vmware/details?downloadGroup=PCLI650R1&productId=614
Once downloaded their is an executable PowerCLI.exe. If I run this executable I get a terminal (that is not cmd/powershell) that pops up with all the PowerCLI commands available.
The problem is when I open a real PowerShell terminal, these commands disappear and are unavailable.
While looking at the folder I downloaded from VMware's website I noticed a script called "initizilize_environment.ps1", after I run this script (its about 5-10 mins)I get access to the PowerCLI commands again. The problem is I loose access to these commands once the PowerShell terminal is closed. This is a big problem as I'm trying to automate the virtual environment and having to wait 5-10 minutes defeats the point.
I would install the PowerCLI via the following, but due to security restrictions the machine cannot have access to the internet.Save-Module -Name VMware.PowerCLI -Path <path>
Any help is much appreciated.
powershell vmware powercli
powershell vmware powercli
asked Jan 16 at 15:31
Hack_HutHack_Hut
1
1
You are not using the current version of PowerCLI there are more options to install current versions of PowerCLI
– Ramhound
Jan 17 at 3:04
add a comment |
You are not using the current version of PowerCLI there are more options to install current versions of PowerCLI
– Ramhound
Jan 17 at 3:04
You are not using the current version of PowerCLI there are more options to install current versions of PowerCLI
– Ramhound
Jan 17 at 3:04
You are not using the current version of PowerCLI there are more options to install current versions of PowerCLI
– Ramhound
Jan 17 at 3:04
add a comment |
1 Answer
1
active
oldest
votes
Save it via an internet connected device.
Then copy it from that systems module folder...
https://blogs.technet.microsoft.com/heyscriptingguy/2013/05/18/powertip-find-the-path-to-a-powershell-module
Then copy the module folder to the non-connected host manually, via USB/CD/DVD, whatever you are allowed to use.
- Raymond follow up -
Consolidating my follow-up comments.
The link as I said was only a pointer to look for the module location.
As for the down vote on this, no I don't underestimate, as I've done this as well as other 3rdP modules. Even if you used the VMware docs on the topic, you'd want to use the link, because of all the manual install / find / copy and paste steps they give you, the would be an unecessary operation to this Q&A.
As it talks to removing old versions, and other steps.
Yet, ultimately, it's still a install on a connected system and copy paste, and a few other manual steps on the disconnected system.
But since you don't think it's improper and that links will go away, Then OK:
Accessing the PowerCLI Modules
https://blogs.vmware.com/PowerCLI/2018/01/powercli-offline-installation-walkthrough.html
Online System with PowerShell 5.x:
•Open PowerShell
•Use the
‘Save-Module’ cmdlet to download the PowerCLI modules locally.
Example:
Save-Module -Name VMware.PowerCLI -Path C:PathToDestinationFolder
•If requested, update the NuGet provider
•If requested, trust the
‘Untrusted repository’ that is named PSGallery Note: This is a local
system trust, not something that has something to do with an SSL
certificate
•Copy those downloaded module folders to a location that can be made
accessible to the offline system.
Example: USB Flash Drive, Internal
File Share, etc.
Adding PowerCLI to the Offline System
It’s now time to put the PowerCLI modules on to the offline system. To
take advantage of the magic that is module auto-loading, we’ll want to
copy and paste those downloaded folders in one of the locations listed
in the PSModulePath variable.
By default, the PSModulePath variable contains the following
directories:
•$homeDocumentsWindowsPowerShellModules
•$pshomeModules
That’s it! Open a PowerShell session and start using your PowerCLI
commands as you did before!
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1394988%2fhow-to-install-powercli-permanently-on-a-computer-with-no-internet%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Save it via an internet connected device.
Then copy it from that systems module folder...
https://blogs.technet.microsoft.com/heyscriptingguy/2013/05/18/powertip-find-the-path-to-a-powershell-module
Then copy the module folder to the non-connected host manually, via USB/CD/DVD, whatever you are allowed to use.
- Raymond follow up -
Consolidating my follow-up comments.
The link as I said was only a pointer to look for the module location.
As for the down vote on this, no I don't underestimate, as I've done this as well as other 3rdP modules. Even if you used the VMware docs on the topic, you'd want to use the link, because of all the manual install / find / copy and paste steps they give you, the would be an unecessary operation to this Q&A.
As it talks to removing old versions, and other steps.
Yet, ultimately, it's still a install on a connected system and copy paste, and a few other manual steps on the disconnected system.
But since you don't think it's improper and that links will go away, Then OK:
Accessing the PowerCLI Modules
https://blogs.vmware.com/PowerCLI/2018/01/powercli-offline-installation-walkthrough.html
Online System with PowerShell 5.x:
•Open PowerShell
•Use the
‘Save-Module’ cmdlet to download the PowerCLI modules locally.
Example:
Save-Module -Name VMware.PowerCLI -Path C:PathToDestinationFolder
•If requested, update the NuGet provider
•If requested, trust the
‘Untrusted repository’ that is named PSGallery Note: This is a local
system trust, not something that has something to do with an SSL
certificate
•Copy those downloaded module folders to a location that can be made
accessible to the offline system.
Example: USB Flash Drive, Internal
File Share, etc.
Adding PowerCLI to the Offline System
It’s now time to put the PowerCLI modules on to the offline system. To
take advantage of the magic that is module auto-loading, we’ll want to
copy and paste those downloaded folders in one of the locations listed
in the PSModulePath variable.
By default, the PSModulePath variable contains the following
directories:
•$homeDocumentsWindowsPowerShellModules
•$pshomeModules
That’s it! Open a PowerShell session and start using your PowerCLI
commands as you did before!
add a comment |
Save it via an internet connected device.
Then copy it from that systems module folder...
https://blogs.technet.microsoft.com/heyscriptingguy/2013/05/18/powertip-find-the-path-to-a-powershell-module
Then copy the module folder to the non-connected host manually, via USB/CD/DVD, whatever you are allowed to use.
- Raymond follow up -
Consolidating my follow-up comments.
The link as I said was only a pointer to look for the module location.
As for the down vote on this, no I don't underestimate, as I've done this as well as other 3rdP modules. Even if you used the VMware docs on the topic, you'd want to use the link, because of all the manual install / find / copy and paste steps they give you, the would be an unecessary operation to this Q&A.
As it talks to removing old versions, and other steps.
Yet, ultimately, it's still a install on a connected system and copy paste, and a few other manual steps on the disconnected system.
But since you don't think it's improper and that links will go away, Then OK:
Accessing the PowerCLI Modules
https://blogs.vmware.com/PowerCLI/2018/01/powercli-offline-installation-walkthrough.html
Online System with PowerShell 5.x:
•Open PowerShell
•Use the
‘Save-Module’ cmdlet to download the PowerCLI modules locally.
Example:
Save-Module -Name VMware.PowerCLI -Path C:PathToDestinationFolder
•If requested, update the NuGet provider
•If requested, trust the
‘Untrusted repository’ that is named PSGallery Note: This is a local
system trust, not something that has something to do with an SSL
certificate
•Copy those downloaded module folders to a location that can be made
accessible to the offline system.
Example: USB Flash Drive, Internal
File Share, etc.
Adding PowerCLI to the Offline System
It’s now time to put the PowerCLI modules on to the offline system. To
take advantage of the magic that is module auto-loading, we’ll want to
copy and paste those downloaded folders in one of the locations listed
in the PSModulePath variable.
By default, the PSModulePath variable contains the following
directories:
•$homeDocumentsWindowsPowerShellModules
•$pshomeModules
That’s it! Open a PowerShell session and start using your PowerCLI
commands as you did before!
add a comment |
Save it via an internet connected device.
Then copy it from that systems module folder...
https://blogs.technet.microsoft.com/heyscriptingguy/2013/05/18/powertip-find-the-path-to-a-powershell-module
Then copy the module folder to the non-connected host manually, via USB/CD/DVD, whatever you are allowed to use.
- Raymond follow up -
Consolidating my follow-up comments.
The link as I said was only a pointer to look for the module location.
As for the down vote on this, no I don't underestimate, as I've done this as well as other 3rdP modules. Even if you used the VMware docs on the topic, you'd want to use the link, because of all the manual install / find / copy and paste steps they give you, the would be an unecessary operation to this Q&A.
As it talks to removing old versions, and other steps.
Yet, ultimately, it's still a install on a connected system and copy paste, and a few other manual steps on the disconnected system.
But since you don't think it's improper and that links will go away, Then OK:
Accessing the PowerCLI Modules
https://blogs.vmware.com/PowerCLI/2018/01/powercli-offline-installation-walkthrough.html
Online System with PowerShell 5.x:
•Open PowerShell
•Use the
‘Save-Module’ cmdlet to download the PowerCLI modules locally.
Example:
Save-Module -Name VMware.PowerCLI -Path C:PathToDestinationFolder
•If requested, update the NuGet provider
•If requested, trust the
‘Untrusted repository’ that is named PSGallery Note: This is a local
system trust, not something that has something to do with an SSL
certificate
•Copy those downloaded module folders to a location that can be made
accessible to the offline system.
Example: USB Flash Drive, Internal
File Share, etc.
Adding PowerCLI to the Offline System
It’s now time to put the PowerCLI modules on to the offline system. To
take advantage of the magic that is module auto-loading, we’ll want to
copy and paste those downloaded folders in one of the locations listed
in the PSModulePath variable.
By default, the PSModulePath variable contains the following
directories:
•$homeDocumentsWindowsPowerShellModules
•$pshomeModules
That’s it! Open a PowerShell session and start using your PowerCLI
commands as you did before!
Save it via an internet connected device.
Then copy it from that systems module folder...
https://blogs.technet.microsoft.com/heyscriptingguy/2013/05/18/powertip-find-the-path-to-a-powershell-module
Then copy the module folder to the non-connected host manually, via USB/CD/DVD, whatever you are allowed to use.
- Raymond follow up -
Consolidating my follow-up comments.
The link as I said was only a pointer to look for the module location.
As for the down vote on this, no I don't underestimate, as I've done this as well as other 3rdP modules. Even if you used the VMware docs on the topic, you'd want to use the link, because of all the manual install / find / copy and paste steps they give you, the would be an unecessary operation to this Q&A.
As it talks to removing old versions, and other steps.
Yet, ultimately, it's still a install on a connected system and copy paste, and a few other manual steps on the disconnected system.
But since you don't think it's improper and that links will go away, Then OK:
Accessing the PowerCLI Modules
https://blogs.vmware.com/PowerCLI/2018/01/powercli-offline-installation-walkthrough.html
Online System with PowerShell 5.x:
•Open PowerShell
•Use the
‘Save-Module’ cmdlet to download the PowerCLI modules locally.
Example:
Save-Module -Name VMware.PowerCLI -Path C:PathToDestinationFolder
•If requested, update the NuGet provider
•If requested, trust the
‘Untrusted repository’ that is named PSGallery Note: This is a local
system trust, not something that has something to do with an SSL
certificate
•Copy those downloaded module folders to a location that can be made
accessible to the offline system.
Example: USB Flash Drive, Internal
File Share, etc.
Adding PowerCLI to the Offline System
It’s now time to put the PowerCLI modules on to the offline system. To
take advantage of the magic that is module auto-loading, we’ll want to
copy and paste those downloaded folders in one of the locations listed
in the PSModulePath variable.
By default, the PSModulePath variable contains the following
directories:
•$homeDocumentsWindowsPowerShellModules
•$pshomeModules
That’s it! Open a PowerShell session and start using your PowerCLI
commands as you did before!
edited Jan 17 at 4:04
answered Jan 17 at 1:18
postanotepostanote
1,04333
1,04333
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1394988%2fhow-to-install-powercli-permanently-on-a-computer-with-no-internet%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You are not using the current version of PowerCLI there are more options to install current versions of PowerCLI
– Ramhound
Jan 17 at 3:04