2

On Windows 7 Pro x64, why does

shutdown /h /d u:6:12

causes the shutdown command to display its usage help (as though I had typed the command with no arguments or with the /? argument).

This command is in a script that my UPS software runs when there is a power failure. The arguments /d u:6:12 indicates an unexpected environmental power failure.

2
  • Wonder if you cant use /d with /h?
    – Matt
    Nov 6, 2014 at 0:09
  • Well, hibernating a computer because of a power failure seems like a common action. And the command documentation makes no mention of mutual exclusivity.
    – mbmast
    Nov 6, 2014 at 0:11

1 Answer 1

2

And the command documentation makes no mention of mutual exclusivity. Well that is not completely true. From the help you see

/h         Hibernate the local computer.
           Can be used with the /f option.

And alternate sites the following descriptions appear

  1. "Hibernate the local computer (only with /f )" Source
  2. "This can only be used with the /f option " Source

Also if you read the description of /d it only mentions that you have to provide the reason for the restart or shutdown.

Yes... hibernating a computer because of a power failure is a good reason... however the power failure is from the UPS and not the computer itself which is what those codes are meant to address. While the above is not conclusive it does coincide with the issue you are having. You could always manual set an event yourself to simulate the behavior you are looking for.

Create an event log on command line

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .