I can't import the module...
Import-module VMware.VimAutomation.vROps
The reason would appear to be that the required module is not available...
Get-Module VMWar* -ListAvailable
How do I install this module?
Thanks in advance.
Looks like your PowerCLI installation is in a funny state.
Can you remove the current installation (MSI I assume), and install the latest version from the PowerShell Gallery?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
LucD,
Thanks for the reply.
Yes, I could uninstall VMware PowerCLI from Control Panel, Programs, Programs and Features in the usual way.
However, before I rush into to that, when you advise to 'install the latest version from the PowerShell Gallery', am I right that this depends on PowerShellGet module?
If yes, I don't appear to have PowerShellGet module on the Windows Server 2012 R2 server in question.
Would the approach be to-
1. Uninstall existing PowerCLI installation
2. Install PowerShellGet module
3. Install PowerCLI from the gallery
By the way, currently on Powershell 4.0. Apart from just keeping up-to-date, would there be any particular advantage in upgrading to the latest version of Powershell as well?
Thanks,
Clive
I would definitely go for PowerShell 5.1.
Have a look at What's New in PowerShell 5, but the support for multiple versions of a module is for me definitely a winner :smileygrin:
From PowerShell v5 onwards, the PowerShellGet module is automatically included.
When you do your first Install-Module, PowerShell will prompt you to install the NuGet PackageProvider.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference