October 2022 - Product Updates and Releases

PowerShell Pro Tools PowerShell Universal Product Updates

October 11, 2022

quote Discuss this Article

This post outlines the new features of PowerShell Pro Tools and PowerShell Universal that have been added in the October 2022 release cycle.

Table of Contents

PowerShell Pro Tools 2022.10.0

VS Code PowerShell Performance

PowerShell Pro Tools now displays CPU and Memory usage from the PowerShell process running in Visual Studio Code.

Convert Tabs to Spaces in PSScriptPad

PSScriptPad can now be configured to convert tabs to spaces with a configurable space count.

PowerShell Universal 3.4

PowerShell Universal 3.4 is the next release of the latest and greatest version of the platform.

Manual Git Mode

Manual git mode is the new suggested setting for when working with git. By default, the platform will be readonly and users will need to click a global Edit button to switch into editing mode. Users can then make changes and save those changes with a custom message that will be committed to git.

When running in this mode, git synchronization will pause when editing is in progress.

Windows Performance Counters

PowerShell Universal now installs performance counters on Windows when running the MSI installer. These performance counters will provide data about API endpoint throughput and dashboard concurrent sessions. More performance counters will be added in the future and we are open to suggestions that may be helpful.

Maintenance Mode and Load Balancer Status Endpoint

In a multi-node setup, you can now set computers into maintenance mode. When is enabled, the new /api/v1/status endpoint will start to a 503 error code to indicate to a load balancer that the system is currently offline. Additional error codes will be returned by the status endpoint in the event of a misconfiguration.

Secret Variable Support for Configuration Files

Secrets can now be used in configuration files. This is useful when configuring features such as authentication that require secrets that you may not want to be exposed as plaintext.

authentication.ps1

Set-PSUAuthentication -Type OpenIDConnect -ClientSecret $Secret:ClientSecret

Complex Objects for API Endpoint Parameters

You can now accept complex objects as hashtables in your PSU endpoints. This feature is not support for Windows PowerShell environments.

New-PSUEndpoint -Url /complex -Method POST -Endpoint {
    param([Hashtable]$Complex)
    $Complex
}

Invoke-RestMethod http://localhost:5000/complex -Method POST -Body (@{ Complex = @{ Property = 123 }} | ConvertTo-Json)

New Options for Dashboard Components

We’ve added options like -Avatar to New-UDCard, -Icon to New-UDSelect and -AutoRefresh to New-UDTable.

Training

Our training courses have been moved to our website and are also available on YouTube. No login is required.