Cannot execute scripts? "Error executing job: Did not receive port from client process"

I’ve got a relatively fresh install of PowerShell Universal, and while trying to execute a script I get the error message “Error executing job: Did not receive port from client process”

The script I’m trying to execute, which does work from a simple Powershell console on the server, is:

Send-MailMessage -SmtpServer ‘server.domain’ -to ‘email@email.com’ -from ‘email2@email.com’ -Subject ‘test’ -Body ‘test’ -WarningAction SilentlyContinue

Can you grab a log from C:\ProgramData\PowerShellUniversal? It sounds like it’s failing to start the job at all.

I’m attributing the issue to an unhealthy server that was suffering from other issues. I installed PS Universal on a second server and everything seems to be working.

1 Like