B
B
borg3332019-05-26 14:26:12
cmd/bat
borg333, 2019-05-26 14:26:12

Veeam script after completing the task, error 5, what to do?

Hello.
The task is to turn off the remote PC after performing the backup.
A bat file has been created with the following content:

shutdown /r /m \\pcname /t 10 /c "VEEAM Backup Job for pcname Ended!"

Checked it works. I add this script to "Run the following script after the job", after execution I get:
Post-job script terminated with exit code 5

I played with the rights to this file, even set full rights to the file for everyone, and this error still appears.
Please help me figure it out.
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
res2001, 2019-05-26
@borg333

Make the script output redirect to a file and stderr the same.
Apparently shutdown ends with an error, but you don't see the error, because the console is hidden when the job is running.
Just write the full path for the log file. Error text here. Perhaps by the text of the error it will already be clear to you what to do.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question