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.