Possibility to set timeout for New-PSUEndpoint

Is it possible to set a maximum execution time for a PSUEndpoint?

I’m using the API as wrappers around tools like certutil.exe and certreq.exe, which annoyingly show prompts in some situations (I’m trying to find these situations as much as possible and prevent them, but they can be quite unexpected). This causes the endpoint to wait indefinitely and eventually starve the server of resources, making every new/other request non-responsive.

Product: PowerShell Universal
Version: 2.5.x

We have an issue open for that here: API Endpoint execution timeout · Issue #794 · ironmansoftware/issues · GitHub

I am not sure if this will help you. But here is a good article on setting timeouts for running jobs. I have not tried it but may be a workaround. If the time out is reached you can kill the job.


It’s probably perfectly viable doing it like that, but the overhead starts ramping up fast, so I’d prefer if the timeout could be incorporated in PowerShellUniversal’s running process instead.