StephaneGillier
Enthusiast
Enthusiast

If I launch this command and I have this error :


Add-PSSnapin :Unable to load the snap-in Windows PowerShell VMware.VimAutomation.Core due to the following error : Unable to cast an object of type 'VMware.VimAutomation.ViCore.Cmdlets.Vim4PSSnapIn' to type 'System.Management.Automation.CustomPSSnapIn'.

At Character Line : 1

+ Add-PSSnapin -Name VMware.VimAutomation.Core

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : InvalidData : (VMware.VimAutomation.Core:String) [Add-PSSnapin], PSSnapInException

    + FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand

Thanks.

Reply
0 Kudos