back again, but this week probably no possibilities to shut down my NAS. Therefore, further tests have to wait.
But in the meantime, I have summarized the logs of my script a bit, so that I can prove to you, that, since September 2016 under Reflect v6.x until exactly the day of the upgrade to version 7.1.x, my NAS was shutdown regularly by my script; over 500 times.
My script called "NAS & Shares.exe" (a compiled WScript) has two tasks and is called twice per Reflect backup task (see "Reflect-Backup-VBScript.vbs.txt") and writes his own log file.
The first call immediately before the real backup call in the Reflect backup task (VBScript, "Sub VBMain()") checks whether my NAS is switched on or not, remembers this state and possibly turns on the NAS.
After executing this real backup call in the Reflect backup task, depending on the backup type ("-full" or "-inc"), my NAS shuts down; with incremental backup then, if "NAS & Shares" had previously turned on the NAS or during full backups, my NAS will always shutdown due to the parameter "/NASoff".
This worked in total from September 2016 to February 04, 2018 under Reflect v6.x.
On February 05, 2018, I upgraded to Reflect v7.1.2885. And from that day on, shutting down the NAS does not work anymore; neither in the described dependency for "inc"-backups nor with the parameter "/NASoff". (The other tasks of "NAS & Shares.exe" are executed correctly.)
The problem, as far as I could identify with the help of my "NAS & Shares.log" (see "NAS & Shares.log.txt"), is the execution of the command "PLink.exe -load PuTTY-Session -l NAS_User -batch -pw "NAS-User_Password" sudo -S <<< "NAS-User_Password" /sbin/shutdown -P +1 ", because PLink now returns the return code 1 from inside the Reflect-VBScript environment. The 'PuTTY-Session' contains a valid SSH-access to NAS on a non-standard SSH-Port. PuTTY v0.67 and v0.70.
"NAS & Shares.exe" called about with a prompt with appropriate parameters, works!
Alternatively, after changing the NAS_User rights, I tested e.g. unsuccessfully: "PLink.exe -load PuTTY-Session -l NAS_User -batch -pw "NAS-User_Password" sudo "NAS-User_Password" /sbin/poweroff". Of course, this call also works from the command prompt.
I think there is hardly a stronger indication of a changed handling of VBScript files between Reflect v6 and Reflect v7.1.
Enclosed the used, original and complete, VBScript file "Reflect-Backup-VBScript.vbs.txt" (Reflect v6.x); the two "NAS & Schares.exe" calls are in "Sub VBMain ()".
Also I have attached the summarized log file of "NAS & Shares.exe" as "NAS & Shares.log.txt", too; I have marked manual explanations with "########".
I would like to see this as an indication of changes in handling between Reflect v6 and v7.1. I can not offer much more from my point of view, because I can not and do not want to get into the depths of Reflect.
Of course, I am happy to answer any questions.
If I can shut down my NAS again, I'll test "reflectbinv6.exe" as a precaution; but due to my logs and circumstances with little hope.
Best regards, Joachim.