Shutting down multiple servers with single APC PowerChute Agent

APC Smart-UPS 1500

A company had a singe APC Smart-UPS 1500 device connected to a Windows Server 2008. They also had a Windows Server 2003 and wanted both servers to be properly shutdown In an event of power failure.

APC PowerChute Agent normally can only shut down server to which it has direct connection. Luckily, APC PowerChute Console allows to run a bat script before Agent host server is shut down. This option is in:
PowerChute > [server] > Properties > Server Shutdown > Shutdown Sequence > Configure Shutdown Sequence

APC UPS - Configure Shutdown Sequence

It's not difficult to make a simple script which will shut down other computers on the network. Something like this:

shutdown /m \\server-name /s /c "Power failure!!! Shutdown requested by APC UPS Agent"

You have to place you .bat script in C:\Program Files (x86)\APC\PowerChute Business Edition\agent\cmdfiles (64bit OS) for PowerChute agent to see it.

Only problem I had was that when script was run by APC PowerChute Agent nothing was happening. If script was run manually everything worked fine. This was cased by a permissions issue. Resolved by setting APC PBE Agent service to run under an account with domain admin privileges.

APC PBE Agent Properties

Comments  

Luis Reyes
# Luis Reyes 2014-10-08 18:35
Yes, my server was joining on domain with previleges yesterday but, I tried to configure PowerChute Business Edition again but it did not work.

Could you help me please?

Luis E. Reyes Gaspar
Luis Reyes
# Luis Reyes 2014-10-08 18:53
Yes, my server was joining on domain with previleges yesterday but, I tried to configure PowerChute Business Edition again but it did not work.

PowerChute Business Edition is on windows server 2012.

I have another question more... when UPS power failure, my server should be shuted down and then UPS still should continue work it with battery until UPS will have low battery and finally shutdown completly??

Could you help me please, I´ve had a lot of problems with this, all my services, for example my server AD and my PBX were lost, and I do not want to test it again.

Luis E. Reyes Gaspar
Luis Reyes
# Luis Reyes 2014-10-07 22:44
Excuse me!

I did everything, but my script does not work, and i do not what happend, when I try to do a test, this test did not do anything an my server is running.
However, When I select my script and double click on it and finally my script file works.

Help me please, i do not know what i have to do!!
I would apreciate your help

Thanks so much.
admin
+1 # admin 2014-10-08 08:28
Is your APC Agent service running under account with domain admin privileges?
MWest
# MWest 2014-05-06 15:43
Thank you for the suggested fix, but how do I get to the dialog box show above (APC PBE Agent Service Properties)?
admin
# admin 2014-05-07 11:10
Just open services mmc snap-in (services.msc) and look for APC PBE Agent

Newsletter

Subscribe to receive occasional updates on new posts.
Your email will not be used for any other purpose and you can unsubscribe at any time.
Please wait