Hi Guru,
do you know how I can find out all objects starting with VMware.Vim.? many thanks
such as VMware.Vim.VirtualMachineConfigSpec VMware.Vim.VirtualDeviceConfigSpec I was using frequently, but how to know what other objects starting with VMware.Vim...
Try something like this.
Note that PowerCLI needs to be loaded.
[appdomain]::CurrentDomain.GetAssemblies() | where {$_.Location -match 'vSphere PowerCLI'} | %{
$dll = $_.Location
$_.ExportedTypes |
Select @{N='DLL';E={$dll}},FullName
}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Try something like this.
Note that PowerCLI needs to be loaded.
[appdomain]::CurrentDomain.GetAssemblies() | where {$_.Location -match 'vSphere PowerCLI'} | %{
$dll = $_.Location
$_.ExportedTypes |
Select @{N='DLL';E={$dll}},FullName
}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
thank you Sir!
I have got the below 5 items, how to know which one is VMware.Vim.VirtualMachineConfigSpec? really appreciate!
PowerCLI C:\> [appdomain]::CurrentDomain.GetAssemblies() | where {$_.Location -match 'vSphere PowerCLI'} | %{$_.ExportedTypes}|ForEach-Object {$_.fullname}|Where-Object {$_ -match "VirtualMachineConfigSpec"}
RbdApi.VirtualMachineConfigSpec
SpbmProxyService.VirtualMachineConfigSpec
SmsProxyService.VirtualMachineConfigSpec
VsanHealthProxyService.VirtualMachineConfigSpec
IntegrityApi.VirtualMachineConfigSpec
PowerCLI C:\>
Don't you have a VMware.Vim.VirtualMachineConfigSpec ?
Are all modules/pssnapin loaded?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
my bad, looks like the previous initialization of powercli failed, once reloaded, I see it!
thank you Sir, have a nice day!