VMware Cloud Community
thakala
Hot Shot
Hot Shot

Trouble with vCO PowerShell plugin

I am having some issues with PowerShell plugin. I was able to add Powershell host using Kerberos authentication and "Session per user" session mode but I am not able to see any snapins on PowerShell host.

When I browse Snapins list under Powershell host I get following error in vCO server.log.

2013-04-19 19:13:51.510+0300 ERROR [BaseSession] System.Management.Automation.RuntimeException: Method invocation failed because [System.Management.Automation.PSSnapInInfo] doesn't contain a method named 'op_Addition'.
   at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
   at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
   ...

On PowerShell host I have following in PowerShell event log.
Error Message = Method invocation failed because [System.Management.Automation.PSSnapInInfo] doesn't contain a method named 'op_Addition'.
Fully Qualified Error ID = MethodNotFound,Microsoft.PowerShell.Commands.InvokeExpressionCommand
Context:
        Severity = Warning
        Host Name = ConsoleHost
        Host Version = 3.0
        Host ID = 9af10727-c545-4d96-8c62-98a8d613ca15
        Engine Version = 3.0
        Runspace ID = bca36775-e1cd-4773-a3d7-a2723927a426
        Pipeline ID = 1
        Command Name = Invoke-Expression
        Command Type = Cmdlet
        Script Name =
        Command Path =
        Sequence Number = 15
        User = x
        Shell ID = Microsoft.PowerShell

PowerShell target host is Windows 2008 R2 with PowerShell 3.0 installed. I can execute remote PowerShell commands from vCO host PowerShell console on PowerShell target host, so WinRM should be OK.
Edit. I attached an screenshot of vCO client with error.
Tomi http://v-reality.info
Tags (3)
0 Kudos
4 Replies
tschoergez
Leadership
Leadership

Hi Tomi,

can you give it a try with using a shared session instead of a per user session?

I heard about about some windows security/permissions related, briefly touched in this article: http://www.vcoportal.de/2013/04/vco-and-veeam-backupreplication-a-powerful-combination/

Cheers,

Joerg

0 Kudos
thakala
Hot Shot
Hot Shot

Joerg,

I have actually tried shared session with basic authentication, with

same results. I think I will try another remote host next to see if

there is something wrong with current one.

Tomi http://v-reality.info
0 Kudos
thakala
Hot Shot
Hot Shot

I tested this with another vCO instance and with another PowerShell remote host, with same outcome. I can actually execute PowerShell scripts just fine, it seems that only snapin inventory is broken in vCO client, this might incompatibility with vCO PowerShell plugin and PowerShell version 3.0.

Tomi http://v-reality.info
0 Kudos
igaydajiev
VMware Employee
VMware Employee

Yes, this is known issue. Unfortunately when the plugin got released PowerShell  3.0 was not releasd yet and that's why it is not supported.

Currently PowerShell plugin for vCO  supports Power Shell version 2.0

0 Kudos