Task that trigger powershell.exe fails

Created:

2016-11-16 13:13:21 UTC

Modified:

2017-08-08 13:37:28 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Task that trigger powershell.exe fails

Applicable to:

  • Plesk 12.0 for Windows

Symptoms

A task fails with the error: Internal error: Error on command execution - "powershell.exe ..." Error: The system cannot find the file specified.

Cause

pleskd.exe cannot find powershell.exe because path to powershell.exe location ("C:\Windows\System32\WindowsPowerShell\v1.0\") is not included into PATH variable of process ( pleskd.exe ) environment.

Resolution

  1. Check whether the PATH variable contains "C:\Windows\System32\WindowsPowerShell\v1.0\".
  2. Restart PA Agent:
    net stop pemnet start pem
Have more questions? Submit a request
Please sign in to leave a comment.