SCOM的Powershell版本问题 RRS feed

  • 问题

  • hello 各位,请教一个问题。

    我们开发了SCOM的MP,其中有一段json转换Powershell script:

    $FansList = & $JavaFilePath -jar $FanJarFilePath fan $BMCIPAddress $BMCUserName $BMCPassword | ConvertFrom-Json        

    其中ConvertFrom-Json 这个在powershell 2.0下是不支持,但我不知道为什么SCOM在执行的时候使用的powershell 2.0而不是3.0或者4.0.

    安装的是system center Operation manager 2012,并且已经安装了powershell 3.0.

    请问如何指定或者升级Operation manager的powershell 版本?


    2016年1月12日 9:11


  • 您好,

    》》安装的是system center Operation manager 2012

    ”the world changed recently with the release of SCOM 2012 R2 UR7 and SCOM 2012 SP1 UR10.“

    CLR load order change

    The current behavior for agents is to choose a CLR version based on the operating system version. For Windows Server 2012 and newer, the .NET Framework 4.0 is loaded. For operating systems older than Windows Server 2012, the .NET Framework 2.0 family is loaded. On management servers, the .NET Framework 2.0 family is loaded. This basically maps the .NET Framework version used to the version available out-of-box on the server. The problem with the current behavior is that even if the Management Pack author knows that .NET Framework 4.0 is present on the system it cannot be used.

    In the new behavior, the agent loads the .NET Framework 4.0 if it is available else it falls back to the .NET Framework 2.0.“


    如果是  SCOM 2012 SP1  请 安装 UR 10 .


    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact .

    2016年1月13日 3:06