Skip to main content

[RESOLVED] Post Command: shutdown?

Thread needs solution

German: Hallo, ich habe leider derzeit ein Problem mit dem Post-Command von Acronis Backup & Recovery 10. Als erstes möchte ich erklären, was ich genau erreichen möchte: Ich habe ein Netzwerk mit drei Computern, von denen jede zweite Nacht ein Backup erstellt werden soll. Die Server-Dienste (AMS ASN usw.) sind auf einem Computer installiert, der 24/7 online ist. Nachts um drei Uhr startet der AMS die zwei anderen Computer und macht ein Backup von ihnen und auch gleichzeitig vom Server. Dies funktioniert bereits eindwandfrei. Nun möchte ich gerne, dass die beiden Computer nach dem Erstellen des Backups wieder heruntergefahren werden. Ich habe bereits sehr viel mit dem Post-Command der Backup-Richtlinie versucht aber leider war alles ohne Erfolg. Auf dem PC, welcher 24/7 online ist, habe ich eine Batch-Datei (Pfad: C:\psshutdown\shutdown.bat), welche beide Computer herunterfährt, sobald man sie startet. Wenn ich diese Datei per Hand starte, funktioniert dies auch ohne Probleme. Anders ist es bei der Backup-Richtlinie: Hier passiert gar nichts. Das Backup wird erstellt aber die Batch-Datei wird nicht ausgeführt und die Computer somit auch nicht heruntergefahren. Ich habe einen Screenshot angehangen, auf dem man sieht, wie ich das Fenster des Post-Commands ausgefüllt habe. Ich würde mich freuen, wenn ihr mir helfen könnt und mir sagen könnt, wie ich es bewerkstellige, dass die beiden Computer nach dem Erstellen der Backups wieder heruntergefahren werden. Vielleicht gibt es ja auch eine weitaus einfachere Möglichkeit. Eine generelle Frage noch: Wenn ich ein Post-Command angebe, wird dieses auf dem Server ausgeführt oder auf jeden PC für sich? Liebe Grüße, larsstr

English:

Hello,
i become desperate with the post command of Acronis Backup & Recovery 10.
First of all, I will explain what I want to accomplish: Every second night, the Acronis Management Server should wake up two other computer in network and take a backup of them (This works already fine). After that, the Backup-Task should execute (via Post-Command in the Backup-Task) a Batch-file, which is located on the AMS to shutdown the two computer.
When I execute the batch-file manually, the two clients shutdown but when the task should execute the batch-file after backup, it does not success. It seems that the task does not execute the file. I attached a screenshot of the postcommand-window and what I filled in the fields. I hope, you can help me :).
(The batch-file is located in C:\psshutdown\shutdown.bat)

Maybe there is another solution, which is easier to use and successful. My aim is, that the acronis management server (24/7 online) shutdown the two clients after taking a backup.

In addition to this, I have a general question:
Is the post command (in my case a batch-file) executed on the Server, where the Acronis Management Server is, or on every remote computer with the backup-policy?

Best regards,
larsstr

Issue resolved here.

Attachment Size
acronis.jpg 134.32 KB
0 Users found this helpful

First, the answer - All Pre/Post commands are excuted on the machine with Agent.

Now about the .bat file - try to specify full path to the bat file instead of just name. If it doesn't help, put the c:\windows\system32\cmd as the executable name , and "-c C:\psshutdown\shutdown.bat" as the argument.

Thank your Fedor Larin for your answer!
Yesterday I tried the following options and found out something amazing:
executable name: shutdown
working path: c:\windows\system32
argument: -s

The system did not shutdown and this led me to try the "shutdown -s"-command direct on the two computer. There I got an error that there are no rights to execute this command. The reason for this is the limited user account.

Is there a possibility to execute this command under the limited account?

Best Regards,
Larsstr

If it's a centralized plan, and the user that runs 'managed machine service' service is only a Backup Operator (if you selected to create a new user during installation, it is) and its privileges may be not enough to shutdown the computer. Try to add the user that is in properties of 'managed machine service' to administrator group and check. If it's a locally created plan, specifying administrator's credentials in plan properties should work.

However backup operators (by default) has the right to shutdown and your setup should work (if their rights were not changed in user rights assignment). Limited right users don't.

It works!
Thank you very much!

I added the user that runs "managed machine service" to Administrator-group and after that all computer shutdown as planned.

Best Regards,
Larsstr