How to shut down computer only after full-backup?
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?

- Log in to post comments

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?
- Log in to post comments

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
- Log in to post comments