Open steskalja opened 3 years ago
Does Import-Module -Prefix
address your scenario?
No it does not, The issue arises when installing modules with conflicting cmdlet names. A good example is PowerCLI from VMWare. It would be helpful to add the -prefix option to install-module in this case.
Summary of the new feature / enhancement
When installing modules it would be ideal to have the option to add a prefix to the modules to avoid conflicts with existing modules. This would help when installing items like powercli and hyper-v modules on the same machine.
Proposed technical implementation details (optional)
The -prefix option would work in a similar fashion to the way it works with import-module. This would append the prefix to each of the modules and cmdlets.