VMware

This Question is Possibly Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
1 Replies Last post: Aug 13, 2008 4:39 PM by c_shanklin  

Powershell Registration Utility Problem posted: Jul 24, 2008 5:02 AM

Click to view paul_xtravirt's profile Hot Shot 162 posts since
Feb 16, 2007

http://communities.vmware.com/docs/DOC-4521

Using the link above, I have downloaded the registerplugin.ps1 file.

I have copied it in to the location where the VI Toolkit is located

I have loaded a VI toolkit powershell session

I have run the ps1 file and everytime, I get the following error:

PS C:\Program Files\VMware\Infrastructure\VIToolkitForWindows> .\registerPlugin.

ps1

Add-PSSnapin : Cannot add Windows PowerShell snap-in vmware.vimautomation.core

because it is already added. Verify the name of the snap-in and try again.

At C:\Program Files\VMware\Infrastructure\VIToolkitForWindows\registerPlugin.ps

1:14 char:13

add-pssnapin <<<< vmware.vimautomation.core+

Any idea's on what am I doing wrong?

I have written a simple xml that like the google example, just points to a webpage (in this case our intranet page)

Any and all help appreciated.

Thanks,

Paul

Re: Powershell Registration Utility Problem

1. Aug 13, 2008 4:39 PM in response to: paul_xtravirt
Click to view c_shanklin's profile Master 755 posts since
Dec 3, 2007

Hi Paul,

Sorry for the long silence on this, I believe I also saw this in another forum and I'm not sure you got this one answered so I'll post here for the sake of it. If you're getting that message you should execute

add-pssnapin VMware.VimAutomation.Core
.

If you run this from an ordinary PowerShell this will be necessary (it also requires the VI Toolkit for Windows). If you launch a toolkit window directly it's not needed.

Developer Social Media

Communities