Pre/Post Command
For years now I have been using Acronis TI and the Pre/Post commands to execute a process (batch, .vbs) which appends to a log file the starting/finishing of a given backup. It has worked fine for years on various versions of Acronis TI but will not work on Acronis TI 2016.
A simplified example of the process I run via the Pre/Post commands goes like this:
run a .bat file which contains something like:
@echo off
wscript \\orlando\S\Scripts\Acronis_log\hello.vbs
The hello.vbs file contains:
WScript.Echo "Hello, world"
A click of the "Test Command" button gives this message:
"Loading script "\\orlando\S\Scripts\Acronis_log\hello.vbs" failed (Logn failure: unknown user name or bad password.)."
A password issue has never shown up before. I'm currently running my "true" .bat/.VBS on another PC with TI 2013 without issues.
Can someone help? Thanks in advance.


- Log in to post comments

Thanks for the feedback Steve. I was not aware of the MVP log viewer. However, the process I created allows me to look at a single log file that contains the results of multiple backups from multiple PC's. At one point I had as many as 5 PC's that I ran backups on allowing me to see, at a glance, whether the backup ran to completion, had filled a disk, etc. Here's a snapshot of what my log looks like:
5/06/2017 01:45:06 AM Acronis Backup D_Drive (Diff) Started on ORLANDO
05/06/2017 01:46:27 AM Acronis Backup D_Drive (Diff) Finished on ORLANDO
05/06/2017 03:00:13 AM Acronis Backup S Daily Started on OLIVER
05/06/2017 03:02:54 AM Acronis Backup S Daily Finished on OLIVER
05/06/2017 06:00:13 AM Acronis Backup BigThumb Started on TESTUDO
05/06/2017 06:00:18 AM Acronis Backup BigThumb Finished on TESTUDO
05/07/2017 01:45:21 AM Acronis Backup D_Drive (Diff) Started on ORLANDO
05/07/2017 01:46:40 AM Acronis Backup D_Drive (Diff) Finished on ORLANDO
05/07/2017 03:00:18 AM Acronis Backup S Daily Started on OLIVER
05/07/2017 03:02:59 AM Acronis Backup S Daily Finished on OLIVER
05/07/2017 05:00:12 AM Acronis Backup Differential Started on TESTUDO
05/07/2017 05:18:58 AM Acronis Backup Differential Finished on TESTUDO
05/07/2017 06:00:12 AM Acronis Backup BigThumb Started on TESTUDO
05/07/2017 06:00:16 AM Acronis Backup BigThumb Finished on TESTUDO
05/07/2017 07:00:09 AM Acronis Backup Differential Started on ORLANDO
05/07/2017 07:08:14 AM Acronis Backup Differential Finished on ORLANDO
- Log in to post comments

Pierre, thanks for the further information. What version of Windows is involved on the system where you have ATIH 2016?
We have seen similar issues with changes introduced for Windows 10 that have tightened up on network security that might be involved here.
One option that you could try is to put the remote path directly in the Pre/Post Command, i.e. \\orlando\S\Scripts\Acronis_log\hello.vbs (modified as needed) and see if ATIH challenges you for any credentials needed to access this remote resource?
- Log in to post comments

Thanks Steve. I'm presently using my scripting on 2 computers, both running Windows 7. The version of TI that still works is ver 2013. In the case of TI 2016, the test script (the one I shared above), as well as the true/live script, both run outside of TI without issue. Regarding your suggestion about directly running the .vbs script in Pre/Post: over the years I've had various incarnations/methods to invoke my scripting and, I believe, I tried this yesterday in my marathon debugging process. The main problem requiring me to use a .bat file was the need for a parm to be passed. Here's what the true/live .bat file has for the .vbs execution:
wscript \\orlando\S\Scripts\Acronis_log\make_log.vbs "BigThumb Started"
I did it this way so that I could track the specific backup that was being run and still use a common .vbs program. This .vbs program was created in 2006 and has worked with all versions of TI until TI 2016. My test scripting is demonstrating TI is having issues running any kind of .VBS script, meaning even a simple "Hello World" script will not run.
- Log in to post comments

Pierre, what happens if you take out the \\orlando\ path part of the script invocation and launch this locally with the bat file?
Also, what build version of ATIH 2016 are you running? Latest is build #6589.
- Log in to post comments

Hi Steve. I'm running version #6589. I setup and tried your suggestion and, sure enough, it works with the .vbs being local (though it defeats the purpose of centralizing my execution). Also, I tried modifying the syntax regarding pointing to my S drive (a shared drive on the Orlando computer) and it doesn't like any of the combinations (\\orlando\S... or S:\...) I've tried. Clearly a bug was introduced into TI 2016 that doesn't properly handle addessing network locations.
- Log in to post comments

Pierre, thanks for the update, at least you have shown that the issue is not with the .VBS script but in how ATIH 2016 is handling the credentials for your remote resource.
Please take a look at KB 58004: Acronis True Image 2016: Troubleshooting Issues Related to NAS Credentials which may offer you some further avenues of investigation.
The alternative would be to open a support case with Acronis support for this issue and let them try to help you further with determining why this no longer works with build #6589?
- Log in to post comments