VMware Cloud Community
binoche
VMware Employee
VMware Employee
Jump to solution

how to find out all objects starting with VMware.Vim.?

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...

Tags (1)
Reply
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

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

View solution in original post

Reply
0 Kudos
4 Replies
LucD
Leadership
Leadership
Jump to solution

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

Reply
0 Kudos
binoche
VMware Employee
VMware Employee
Jump to solution

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:\>

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

Don't you have a VMware.Vim.VirtualMachineConfigSpec ?

Are all modules/pssnapin loaded?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
binoche
VMware Employee
VMware Employee
Jump to solution

my bad, looks like the previous initialization of powercli failed, once reloaded, I see it!

thank you Sir, have a nice day!

Reply
0 Kudos