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
- Check whether the PATH variable contains "C:\Windows\System32\WindowsPowerShell\v1.0\".
- Restart PA Agent:
net stop pem net start pem