Applications Systems

PowerShell monitor error: You should update your PowerShell to PowerShell 2.0

This article discusses the issue where the PowerShell application monitor returns the following error even when the PowerShell version used is 4.0: WARNING: You should update your PowerShell to PowerShell 2.0. SAM 6.0.

First published date

11/15/2018 2:07 AM

Last published date

4/9/2025 6:42 PM

Overview

This article discusses the issue where the PowerShell application monitor returns the following error even when the PowerShell version used is 4.0: 

WARNING: You should update your PowerShell to PowerShell 2.0 

SolarWinds SAM is compatible with PowerShell 2.0 or later, including v. 4.0. (You need at least PowerShell 2.0 to support remote execution.)

Product section

Server Application Monitor

Cause

The warning is thrown by Get-VMJob from the endpoint (target Server where the SAM template is assigned) itself and not by the SolarWinds Platform.

Resolution

  1. Verify that the server where the template is assigned is actually running PowerShell 4.0.

  2. Confirm where the problem resides. Refer to PowerShell Veeam backup status report 

  3. Take the problematic script, open PowerShell ISE and connect remotely to the node using the same credentials and then check if the ISE console displays the same warning.

  4. Confirm that the warning is thrown by Get-VMJob  using Veeam cmdlets. This means that the problem is on the target node and not in Orion.

  5. Use the -WarningVariable common parameter to address the warning. Refer to Saving Warnings to a variable in PowerShell 

PowerShell requires .NET Framework 3.5.x. but SAM 6.5 — 6.6.1 use .NET Framework 4.6.2. You can use Server Manager's Add Roles and Features wizard to add .NET Framework 3.5, if necessary.