This repository was archived by the owner on Jun 13, 2024. It is now read-only.
This repository was archived by the owner on Jun 13, 2024. It is now read-only.
Offline installation of modules from Save-Module does not work on PS <5.x #171
Open
Description
Save-Module
downloads modules including a version folder in the path. Older versions of Powershell don't know how to import modules with a version in the folder path, and requires users to manually move around files to get the modules to work.
A user has provided details and a workaround here: http://www.powershellcrack.com/2017/09/installing-powercli-on-disconnected.html
See also: https://communities.vmware.com/thread/564258
Edit: Adding more info to save people time when they read this. :)
The problematic workflow is this:
A user has PS 5.x on their machine connected to the Internet, and PS <5.0 on their machine not connected to the Internet. They want to install modules from the gallery on their non-connected machine.
- Use
Save-Module
to get module from gallery. (Saved with version folders in path). - ⛔️ Perform manual file copies to remove the version number in path
- Copy fixed modules over network to PS <5.0 (no Internet) machine