APC Shutdown Command
So we just installed a new APC UPS.
And installed the Agent onto our servers. In the setup of the Agent you tell the agent use "default.cmd" to shutdown the server as a test.
Now this default.cmd literally has nothing in it of value.
@echo off rem rem Maximize for best viewing rem This command file provides examples of proper command file syntax rem rem Command Files run by PowerChute Business Edition must be placed in this directory. rem rem Use the full path name of executable programs and external command files. rem rem The @START command must be used to run executable programs (see example below). rem For the @START command, path names that include spaces must be enclosed in quotes; rem arguments for the executable must be outside the quotes. A double quote must rem precede the quoted path name. For example, to execute a command file in rem c:\Program Files\APC\PowerChute Business Edition\agent\cmdfiles called myShut.exe, rem the following line should be entered in the command file: rem rem @START "" "c:\Program Files\APC\PowerChute Business Edition\agent\cmdfiles\myShut.exe" rem @echo on
So what would work here.
shutdown /l /s /f
I'm assuming it would, but not certain.
Sadly I can't test today on this server, so my machine is the Ginny-pig.
shutdown /l /s /f /d p:6:12
For a power outage, unplanned.
Got it I think
shutdown /s /f d p:6:12