VMware Cloud Community
gboskin
Enthusiast
Enthusiast
Jump to solution

get Installed toolkit version

How to get instalkled toolkit version

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Is the snapin loaded ? Do


Get-PSSnapin

If it is loaded you can do


Get-Command -PSSnapIn VMware.VimAutomation.Core | Where-Object {$_.Name -eq "Connect-VIServer"}

to check if the command is recognised.

Btw, does Get-VIToolkitVersion return anything ?

Just noticed you only have the problem in PowerGui.

That seems to indicate the snapin is not loaded.

Can you check your PS profile ?

I have it in my profile.ps1

Add-PSSnapin VMware.VimAutomation.Core

together with a few other snapins.


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

View solution in original post

0 Kudos
4 Replies
LucD
Leadership
Leadership
Jump to solution

Get-VIToolkitVersion


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

0 Kudos
gboskin
Enthusiast
Enthusiast
Jump to solution

I have just installed vi toolkit on adiffrent box and it does nor regnoeci the Connect VIServer command ????

It works fime from the VI toolkit console ..but not when usingh powerQUI

0 Kudos
LucD
Leadership
Leadership
Jump to solution

Is the snapin loaded ? Do


Get-PSSnapin

If it is loaded you can do


Get-Command -PSSnapIn VMware.VimAutomation.Core | Where-Object {$_.Name -eq "Connect-VIServer"}

to check if the command is recognised.

Btw, does Get-VIToolkitVersion return anything ?

Just noticed you only have the problem in PowerGui.

That seems to indicate the snapin is not loaded.

Can you check your PS profile ?

I have it in my profile.ps1

Add-PSSnapin VMware.VimAutomation.Core

together with a few other snapins.


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

0 Kudos
gboskin
Enthusiast
Enthusiast
Jump to solution

Cheers LuCD .. need to add the snap in......

0 Kudos