OpsMgr – xplat module depends on Powershell 3.0


Just a quick note: if you’re using powershell in our modules and in just in case you’re going to check the StandardError stream you’ll probably get the following error:

Import-Module : The version of the loaded PowerShell is ‘2.0’. The module ‘C:\P

rogram Files\System Center 2012\Operations Manager\Powershell\OperationsManager

\OM10.CrossPlatform\OM10.CrossPlatform.psd1′ requires a minimum PowerShell vers

ion of ‘3.0’ to execute. Please verify the installation of the PowerShell and t

ry again.

At C:\Program Files\System Center 2012\Operations Manager\Powershell\Operations

Manager\OM10.CrossPlatform.Start.ps1:12 char:56

+ if ((Get-Host).Version.Major -ge [int]3) {Import-Module <<<<  $scriptPath\OM1

0.CrossPlatform}

    + CategoryInfo          : ResourceUnavailable: (C:\Program File…ssPlatfo

   rm.psd1:String) [Import-Module], InvalidOperationException

    + FullyQualifiedErrorId : Modules_InsufficientPowerShellVersion,Microsoft.

   PowerShell.Commands.ImportModuleCommand

It happens the xplat modules have a dependency to Powershell 3.0, you can safely ignore the error.

If you really want to get rid of it check here: http://www.systemcentercentral.com/BlogDetails/tabid/143/IndexID/95114/Default.aspx

- Daniele

This posting is provided “AS IS” with no warranties, and confers no rights.

About these ads
  1. Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 329 other followers

%d bloggers like this: