Good Bye!!!Add-PSSnapin VMware.VimAutomation.Core

After up gradation of PowerCLi 5.x to 6.5, I got an error during execution of my old script “Add-PSSnapin : The Windows PowerShell snap-in ‘VMware.VimAutomation.Core’ is not installed on this computer.”

Finally got solution that I have to use “Get-Module –ListAvailable VM* | Import-Module” in place of “Add-PSSnapin VMware.VimAutomation.Core”.

After importing Module you can use all previous syntax.

Please see the below reference Release KB: PowerCli 6.5 Released Guide  and PowerCLi6.5 User Guide: PowerCli 6.5 User Guide

Feel free to comment to me for more conversation.

Thanks

Advertisements