Secure handling of sensitive configuration values (SQL connection strings and agent tokens)
Hi @Adam Driscoll,
Thanks for the quick reply and the detailed information.
I'm aware of the option to use the PowerShell SecretManagement module for agent tokens. My concern is that the referenced documentation dates back to 2022 and is, according to the documentation, no longer being updated. Because of that, I'd prefer not to rely on this approach for a new implementation if possible.
The older Event Hub agent isn't something we need, so that's not relevant for our use case.
Regarding the SQL connection string, Integrated Security unfortunately isn't an option for us. We have company requirements we need to follow, and our databases are provided by an external service provider. As a result, I don't have any influence over the authentication method used for the database connection.
So having native support for securely referencing secrets in the connection string would be very helpful for our environment.
Thanks again for looking into this and for opening an issue to track it.
Secure handling of sensitive configuration values (SQL connection strings and agent tokens)
Currently, sensitive configuration values such as SQL Server connection strings and agent tokens need to be stored in plaintext or provided through environment variables.
For on-premises installations running PowerShell Universal directly on Windows Server, environment variables don't really solve the problem. They mainly move the plaintext secret from the configuration file to another location.
It would be useful to have a native and supported mechanism for securely storing or referencing sensitive configuration values.
Possible approaches could include:
Encrypted/protected values in
appsettings.jsonandagents.jsonIntegration with a secure secret store or Windows-native credential mechanism
Support for referencing secrets instead of storing the actual value in the configuration
Certificate-based authentication (mTLS) for PSU agents as an alternative to static app tokens
The goal would be to avoid having long-lived credentials or tokens stored in plaintext on the server while still having a solution that works well for traditional on-premises Windows Server deployments.
Get-PSUJobPipelineOutput returns no data for completed jobs (2026.3.x regression)
Hello @Patrick Ouimet,
Thank you for the update and confirming that this has been reproduced and reported as a regression.
I can confirm that all affected jobs are shown with the status "Failed" in the PSU admin console.
We also tested the workaround you initially suggested by replacing "throw" with "Write-Error". This works as described: the job ends with the status "Error" instead of "Failed", and the pipeline output remains available.
We appreciate the investigation and look forward to an update once the development team has identified the root cause and a fix is available.
Thank you for your support!
Get-PSUJobPipelineOutput returns no data for completed jobs (2026.3.x regression)
I'd like to reopen this as I just noticed that if a job ends with error (I guess failed, canceled, etc. too), the Pipeline Output is still empty. (version 2026.3.2)
The object stands in the log but not in the pipeline output.
At least in version 2026.1.6 which I use in production now it returned the pipeline output as well. I have many scripts that rely on that pipeline output regardless of job status..
Get-PSUJobPipelineOutput returns no data for completed jobs (2026.3.x regression)
@Marc-Antoine Dubois
After update to 2026.3.2 it works fine again.
Get-PSUJobPipelineOutput get's the objects as expected.
Thanks for the quick fix release.
Get-PSUJobPipelineOutput returns no data for completed jobs (2026.3.x regression)
Environment: PowerShell Universal 2026.3.1 (possibly already 2026.3.0)
Summary: After upgrading to 2026.3.x, `Get-PSUJobPipelineOutput` returns nothing for completed jobs, even though the pipeline output was produced correctly and is counted (but not shown) in the Admin Console.
Repro script:
$InformationPreference = 'Continue'
$obj1 = [PSCustomObject]@{ Fruit = 'Apple'; Count = 3 }
Write-Information "Object 1: $($obj1 | ConvertTo-Json -Compress)"
$obj1
$obj2 = [PSCustomObject]@{ Name = 'Widget'; Color = 'Blue'; 'Order-State' = 'Success' }
Write-Information "Object 2: $($obj2 | ConvertTo-Json -Compress)"
$obj2
$arr = 1..2 | ForEach-Object { [PSCustomObject]@{ Index = $_; Value = "Item$_" } }
Write-Information "Object 3 (array): $($arr | ConvertTo-Json -Compress)"
$arr
Steps: Run via Invoke-PSUScript (or admin console), wait for completion, then check the job's "Pipeline Output" tab and call Get-PSUJobPipelineOutput -JobId <id> (tested locally and remotely with -ComputerName/-UseDefaultCredentials).
Expected: 4 objects (array unrolls to 2) with their properties, retrievable via Get-PSUJobPipelineOutput and inspectable in the Admin Console (as in 2026.1.6).
Actual:
- Admin Console "Pipeline Output" tab lists 4 rows but only shows the type name Deserialized.System.Management.Automation.PSCustomObject, no property values.
- Get-PSUJobPipelineOutput -JobId <id> returns nothing, locally and remotely.
- The job Log tab (explicit `Write-Information` JSON) confirms the correct values were actually emitted, ruling out a scripting error.
Impact: Any dashboard app using Get-PSUJobPipelineOutput to show job results in a table silently displays empty data despite successful job execution.
[2026.3.0] UDSelect $EventData serialized
I notice this issue as well in 2026.3.1.
Already tested a workaround similar to this $value = if ($EventData -is [string] -and $EventData.Trim() -match '^(\{[\s\S]*\}|\[[\s\S]*\]|"[\s\S]*")$') {
$EventData | ConvertFrom-Json -AsHashtable
} else { $EventData }
and it works.
What I am not sure is, does this only happen in $EventData of UDSelect or $EventData in general?