PowerShell Universal v5.6


This is a companion discussion topic for the original entry at https://blog.ironmansoftware.com/powershell-universal-v56/

What I noticed,
sry, short on time, can’t go into detail.

  • After the upgrade from 5.5.0 the menu on the admin page did no longer work.
    I had to clear the browser cache first.

  • The invocation of scripts no longer works.
    It tells me to set permissive security model, but I have that set in appsettings.json.
    I found an entry in settings.ps
    ApiSecurityModel = “Medium”
    That does not correspond to a menu item in the Settings page.
    And the doc says: strict, integrated, permissive but no medium at all.

EDIT:
Server did not start anymore and the error message explained it:

Cannot bind parameter 'ApiSecurityModel'. Cannot convert value "Permissive" to type "PowerShellUniversal.ApiSecurityModel". Error: "Unable to match the identifier name Permissive to a valid enumerator name. Specify one of the following enumerator names and try again: High, Medium, Low"

So I used low and invoke scripts works again the “old way”
However low does not sound good.
It would be nice to know what exactly those 3 options mean.

  • after creation of a new script, the script editor opens. But nothing can be edited.
    Had to go to some other menu item first and come back to code editing for it to work.

  • the new view in schedules is not better. At least on my system the columns get distorted if the browser only takes half of the 27" screen.
    EDIT: set “List” helps here.

  • disable auto reload in Settings/Platform is missing.
    The setting still is in settings.ps1
    What is “disable code first editing”?, that now is at that place.
    EDIT: ok I understood that one now, however the update did not take care of old settings.

  • the editor in files misses the horizontal scroll bar
    (well it did…confused now…)
    Ok, got it. When several Menu items are expanded, the scroll bar in the editor gets out of view.
    I think it should always bind to the lower window border, not the whole html page length.

  • when editing a page, the page code now includes the line
    New-UDPage -Url “/mypage” -Name “mypage” -Content {
    that usually was hidden from the code editor unless one opened the file in files.
    And for whatever reason my app menu shows the new page twice.
    And no more GUI for page settings…
    Edit 2:
    ok I was in vscode mode, because I had a setting in settings:
    DisableAutoReload = $true
    It still was there, but no longer visible in the GUI and caused new “VSCODE” editing mode.
    Edit 3:
    The page still appears twice. It gets created with “autoinclude”.
    When I remove -autoinclude and add it to the pages with Get-UDPage, it appears twice.
    Edit 4:
    "-autoinclude $false " helps here. Somehow once set, it stays persistent until unset.
    Not cool, because this gets inserted by default. Should be optional, my 2 cents.

Anyway, when editing pages in VScode using the API/Token access of the Extension, the
New-UDPage -Url “/mypage” -Name “mypage” -Content {
line is NOT in the code. To me not consistent.

  • platform/computers now has a trashbin icon next to my single computer.
    Not sure I like the ability to delete my only computer.

  • syslog was working before the upgrade.
    Now I get an error in the text logs:
    [7/23/2025 4:39:27 PM] [Error] [Configuration-logging.ps1] failure inside TCP socket: “The operation was canceled.”
    Funny enough, when I check in Splunk I see:
    image
    So actually a message got through…
    And later syslog messages work as well.

It might be just me, but for now I won’t upgrade my prod server.

1 Like

Warning to those using Windows authentication with AD:

If you type in your password wrong once at the login, you WILL get your account locked out. It goes into some weird redirect loop and will instantly lock your account out every time. Have to either re-auth in an incognito window or clear cache (after unlocking the account).

1 Like