-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Description of Issue
In PowerShell Universal Docker images using the -modules tags, Start-ThreadJob is not available by default inside the PSU script runtime. The ThreadJob / Microsoft.PowerShell.ThreadJob module is not present under the hosted PowerShell modules directory (/home/Universal/Hosts/.../Modules). 13553*
This reproduces in:
ironmansoftware/universal:5.5.2-modules
ironmansoftware/universal:2026.1.3-modules (note: ironmansoftware/universal:2026.1.3 tag was not found)
Additionally, attempting to install the module at runtime using Install-PSResource -Scope CurrentUser failed in the PSU runtime (2026.1.3-modules lab repro) with Index was out of range..., and Start-ThreadJob remains unavailable.
Impact: scripts cannot use ThreadJob-based parallelism in PSU Docker runtime by default, and Start-Job is generally not viable in hosted scenarios (PSU guidance recommends ThreadJob).
Steps to Reproduce (minimal)
-
Start PSU with a clean
/rootvolume (fresh container state) using one of:ironmansoftware/universal:5.5.2-modulesironmansoftware/universal:2026.1.3-modules
-
Run a PSU script (via Admin UI or via API
/api/v1/scriptexecution) containing:
$PSVersionTable
$PSHOME
$env:PSModulePath
Get-Command Start-ThreadJob -ErrorAction SilentlyContinue | Format-List *
Get-Module -ListAvailable Microsoft.PowerShell.ThreadJob,ThreadJob | Select Name,Version,Path- Observe:
Get-Command Start-ThreadJobreturns no results (cmdlet missing).Get-Module -ListAvailable ...ThreadJob...returns no results (module not discoverable by default).
- Optional filesystem validation inside the container:
-
Confirm there is no ThreadJob module under the hosted modules directory:
/home/Universal/Hosts/.../Modules/*ThreadJob*(not present)
- Attempt runtime workaround (inside PSU script runtime):
Install-PSResource -Name ThreadJob -Scope CurrentUser -Confirm:$false
Get-Command Start-ThreadJob -ErrorAction SilentlyContinueExpected:
- Install should succeed and
Start-ThreadJobbecomes available.
Actual (lab repro):
- Install fails and
Start-ThreadJobremains missing.
Error observed:
Install-PSResource: Index was out of range...
Version
-
Reproduced on Docker image:
ironmansoftware/universal:5.5.2-modules- PSU UI reported:
5.5.2build14742231506(docker)
- PSU UI reported:
-
Reproduced on Docker image:
ironmansoftware/universal:2026.1.3-modules- Note:
ironmansoftware/universal:2026.1.3tag not found
- Note:
Version
5.5.2 / 2026.1.3
Severity
High
Hosting Method
Docker Container
Operating System
Linux
Database
SQLite
Licensed
Yes
Features
Git Sync enabled (two-way) with external git client (private remote)
Scripts executed via PSU job runtime (API /api/v1/script used in lab repro)
Additional Environment data
PowerShell Version observed (one environment): 7.5.1
PSHOME observed in runtime (one environment): /home/Universal
Hosted PowerShell modules path checked: /home/Universal/Hosts/.../Modules (ThreadJob not present)
Screenshots/Animations
No response