Make the system shut down or log off automatically using pre/post commands

This article gives explanation of why one cannot set a task to be executed at shutdown/logoff in an Acronis product when it is run in Windows Vista or Windows Server 2008. This article also provides a workaround for this issue

The post command will fail only if you run an unscheduled task and log off before the task completion