[CVAD PowerShell SDK] Failed to run PowerShell after upgrade PowerShell to 7.4

book

Article ID: CTX694702

calendar_today

Updated On:

Description

The PowerShell script failed to execute after upgrade PowerShell from 5.1 to 7.

PowerShell version: 7.4.10

PowerShell SDK version: 7.44.26561.63006

Cause

Several cmdlets was deprecated in PowerShell 7.5. The stack overflow was caued by PowerShell cmdlets "out-gridview"

Resolution

Remove all deprecated PowerShell cmdlets from the scripts.

Issue/Introduction

The PowerShell script failed to execute after upgrade PowerShell from 5.1 to 7.

PowerShell version: 7.4.10

PowerShell SDK version: 7.44.26561.63006

Additional Information

https://learn.microsoft.com/en-us/powershell/scripting/whats-new/differences-from-windows-powershell?view=powershell-7.5