To cancel an automatic shutdown triggered by a command, open Command Prompt and enter this: A message that says Logoff is cancelled confirms the command worked. How to Set up Automatic Shutdown ...