VMware Cloud Community
downatone
Contributor
Contributor
Jump to solution

Register VI Toolkit Cmdlets in powershell

Right now I need to open the VI Toolkit console to use the vm cmdlets.

If I try to call any of them from within powershell, the cmdlets are unrecognized. How do I register them within powershell so I don't have to use the VI Toolkit console?

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

You can use

Add-PSSnapin -Name "VMware.VimAutomation.Core"

Best is to place this in one of the profile files, that way it will be loaded automatically when you start PS.


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

View solution in original post

0 Kudos
2 Replies
LucD
Leadership
Leadership
Jump to solution

You can use

Add-PSSnapin -Name "VMware.VimAutomation.Core"

Best is to place this in one of the profile files, that way it will be loaded automatically when you start PS.


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

0 Kudos
downatone
Contributor
Contributor
Jump to solution

Silly me, just needed to register the correct snapin it looks like.

add-pssnapin -Name "VMware.VimAutomation.Core"

Edit: thanks just realized that

0 Kudos