Adding Additional Node

avatar

I am currently running two nodes and have been for several versions now. I am trying to add a 3rd but keep running into this error(see below) in the log for every script and the webpage for new node just keeps saying “Powershell Universal is loading”. My environment is with Windows Server 2022, MSSQL, and HAProxy:
2025-02-03 00:02:33.511 -08:00 [ERR][UniversalAutomation.Services.ScriptService] Failed to get parameters for script Anthology Import INC Grades.ps1
System.Management.Automation.PSSecurityException: File C:\ProgramData\UniversalAutomation\Repository<redacted>.ps1 cannot be loaded because you opted not to run this software now.
—> System.UnauthorizedAccessException: File C:\ProgramData\UniversalAutomation\Repository<redacted>.ps1 cannot be loaded because you opted not to run this software now.
— End of inner exception stack trace —
at System.Management.Automation.AuthorizationManager.ShouldRunInternal(CommandInfo commandInfo, CommandOrigin origin, PSHost host)
at System.Management.Automation.CommandDiscovery.ShouldRun(ExecutionContext context, PSHost host, CommandInfo commandInfo, CommandOrigin commandOrigin)
at System.Management.Automation.ExternalScriptInfo.get_ScriptBlock()
at UniversalAutomation.ScriptParameterParser.GetParameters(Script script, IEnumerable`1 contextParameters) in C:\actions-runner_work\universal\universal\src\Universal.Server\Utilities\ScriptParameterParser.cs:line 264
at UniversalAutomation.Services.ScriptService.UpdateScript(Script script) in C:\actions-runner_work\universal\universal\src\Universal.Server\Services\Configuration\Scripts.cs:line 288

avatar

Recommended Answer

This is usually a permission or security thing. Antivirus programs can cause this that use stuff like ASMI or Windows will do it if the script files are not unblocked.

Get-ChildItem -Recurse | Unblock-File


Are you using git to share files across the nodes?

Adam Driscoll
PowerShell Expert and Developer at Devolutions

All Comments (2)

avatar

This is usually a permission or security thing. Antivirus programs can cause this that use stuff like ASMI or Windows will do it if the script files are not unblocked.

Get-ChildItem -Recurse | Unblock-File


Are you using git to share files across the nodes?

Adam Driscoll
PowerShell Expert and Developer at Devolutions

avatar

That fixed it. Thanks!