Several alternatives are offered in
https://issues.jenkins.io/browse/JENKINS-67000
Alternatives include:
- Install Jenkins 2.332.1 that includes the fix
- Use a batch file or powershell script to start the agent instead of starting from the jnlp file. Define a service that runs the batch file
- Switch to use the Microsoft OpenSSH service on the Windows computer to run the agent