Skip to content

PowerShell in UNIFYConnect

Overview

UNIFYConnect uses the Microsoft.PowerShell.SDK package for PowerShell components. Unlike earlier UNIFYBroker releases, UNIFYConnect uses PowerShell 7 and controls the PowerShell version instead of using whichever version is installed on the host.

As a result of this, some items like changing the execution policy may have some different steps required (as documented here). The main benefit is allowing your code to use modern PowerShell Features, and re-use modules you might be using on modern platforms elsewhere. It also gives you confidence that scripts may only need revisiting when you're already upgrading UNIFYConnect, rather than your scripts having issues out of the blue.

To confirm the minor/patch version of PowerShell in use by UNIFYConnect, you can visit the About page on the UNIFYConnect Web component and navigate to the Microsoft.Powershell.SDK entry:

image

This will inform you the version in use for your particular release of UNIFYConnect, and allow you to use the PowerShell GitHub Changelog or Microsoft Documentation to determine which changes are applicable to that version.