Hi
I am not able to execute Get-VDSwitch on Powershell ISE window.
What might be the issue?
I am running latest version of powercli and powershell.
I am able execute the command Get-VirtualSwitch -Distributed
Below are the version info:
PowerCLI is being converted from snap-ins to modules. The Add-PSSnapin cmdlet does not import modules. You can use the following command to import the PowerCLI modules into your ISE session:
Get-Module -Name VMware.* -ListAvailable | Import-Module
It looks like you don't have the module VMware.VimAutomation.Vds imported in your ISE session. The Get-VDSwitch cmdlet is defined in this module. You should import all of the vmware.* modules in your ISE session, to be able to use all of the PowerCLI cmdlets.
Hi RvdNieuwendijl
Yes I add all the modules but still is not working..
Add-PSSnapin "*vmware*"
PowerCLI is being converted from snap-ins to modules. The Add-PSSnapin cmdlet does not import modules. You can use the following command to import the PowerCLI modules into your ISE session:
Get-Module -Name VMware.* -ListAvailable | Import-Module
Thanks that worked.