Skip to main content

How to shut down computer only after full-backup?

Thread needs solution

I have a Backup-rule, which makes a full backup on Monday after 4PM. The same rule makes a diff-backup from tuesday to friday at 10AM. I want to shutdown each computer depending on this rule only on monday. My .bat show's like this : shutdown /s /m \\%COMPUTERNAME%. How can i perform a shutdown only on monday?

0 Users found this helpful

Hi Carsten,
No doubt you could achieve this through the Windows Task Scheduler ,which offers many options of that type as to dates,hours...
P.S. It would help if you would provide information on your Acronis version ,OS...
Don't you think?

Sorry, my fault.
Acronis B&R 10 Build 11133, Windows Server 2003 SBS and XP Workstations.
The Backup is startet by the rules created for workstations on the SBS Server, so the Task-Sheduler of the Clients cannot be used, i think, or?

it would be best to use VBScript because it is much easier (batch scripts are not reliable in checking day of week - on some locations - with specific date format they wont work)
create a file dayofweek.vbs

WScript.Echo DatePart("w", Date)

then modify your script

for /f %%d in ('cscript dayofweek.vbs //nologo') do (
echo %%d
if %%d==2 shutdown /s /m \\%COMPUTERNAME%
)

1 should be Sunday 2 Monday and so on