[2026.3.5] Apps fail to start in Windows PowerShell 5.1 environments: UniversalDashboard.MaterialUI.psm1 does not parse under PS 5.1 ("The term 'New-UDApp' is not recognized")
Hello,
Product / version: PowerShell Universal 2026.3.5.0 (MSI), upgraded from 2026.3.3.0
Environment
- Windows Server 2022 (build 20348)
- Windows PowerShell 5.1.20348.4294, .NET Framework 4.8 (release 528449)
- PSU installed with the MSI as a Windows service, PostgreSQL backend for the PSU database
- The app is declared as follows:
New-PSUApp -Name "App" -FilePath "dashboards\App\App.ps1" -BaseUrl "/" -Environment "Windows PowerShell 5.1" -Authenticated -AutoDeploy
I have an app configured to run under the environment Windows PowerShell 5.1 and it fails to start after the upgrade to 2026.3.5.0.
The app log shows:
[Error] [App-App] Failed to get app. App was null. Make sure to return an app from your script.
[Error] [App-App] Startup: The term 'New-UDApp' is not recognized as the name of a cmdlet, function, script file, or operable program.
[Error] [App-App] Startup: The term 'New-UDIcon' is not recognized as the name of a cmdlet, function, script file, or operable program.The same app starts without any problem when it is switched to the PowerShell 7 environment. It was working in 2026.3.3.0 under Windows PowerShell 5.1.
After Import-Module Universal in Windows PowerShell 5.1, the module exposes only 4 New-UD* commands (New-UDElement, New-UDEndpoint, New-UDEndpointSchedule, New-UDPage) and only 6 functions. In PowerShell 7 it exposes 129 New-UD* commands.
Universal.psm1 line 1 imports this file with errors suppressed:
Import-Module "$PSScriptRoot\UniversalDashboard.MaterialUI.psm1" -ErrorAction SilentlyContinueParsing UniversalDashboard.MaterialUI.psm1 with the Windows PowerShell 5.1 parser ([System.Management.Automation.Language.Parser]::ParseFile) returns 5 errors:
L3893: The hash literal was incomplete.
L3894: Unexpected token 'End' in expression or statement.
L3780: Missing closing '}' in statement block or type definition.
L3985: Unexpected token '}' in expression or statement.
L3986: Unexpected token '}' in expression or statement.I used AI to help me troubleshoot this before opening a case, so, if this is incomplete, or if you need more information, feel free to ask.
Thank you in advance,
Axel
Manual job launch fails with "Unknown identity" after upgrading to 2026.2.0
Hello !
I have just upgraded to the latest 2026.2.3.0 version
I confirm that this issue is now resolved.
Thank you for your hard work !
Kind regards,
Axel
Manual job launch fails with "Unknown identity" after upgrading to 2026.2.0
Hi Patrick,
Thank you for the follow up.
The workaround is in place for all the people who need it so no problem for waiting a bit longer for the fix.
Kind Regards,
Axel
Manual job launch fails with "Unknown identity" after upgrading to 2026.2.0
Hi Patrick,
Thank you very much for taking time to reproduce my scenario and provide me with a clear response.
It is now clear for me, I am the only one who needs to manually start scripts from time to time, so the workaround is fine with me.
Looking forward for the next release !
Thanks again.
Kind Regards
Axel
Manual job launch fails with "Unknown identity" after upgrading to 2026.2.0
Hello,
After upgrading from 2026.1.6 to 2026.2.0, a domain user can no longer start a script manually from the admin console. The job fails immediately with Failed to start script. Unknown identity: DOMAIN\Account
I did some troubleshooting before posting here and I found out that the console identifies me as DOMAIN\Account (with domain name in uppercase), and automatically creates an identity for me that I can find under Security > Identities. This automatically generated identity is stored as domain\account (With domain in lowercase).
I manually created a second identity for my account with domain name in uppercase, and I was able to start a job successfully.
Here are some details about my environment :
Version: 2026.2.0
Auth: Windows Authentication, AD domain account
Database: PostgreSQL
Licensed: Yes
Install: As a Windows Service with SYSTEM account
Thank you in advance for your help.