Download ArticleDownload Article

Windows 10 has a feature that can automatically shutdown your computer according to a schedule you set. But you might be working or gaming late and don't want your computer to automatically shut down. This How.com.vn will teach you how to cancel auto-shutdown using the run command, the command prompt, or PowerShell. However, if you use power-saving settings to save your battery life when your laptop isn't plugged into a power source, you may also need to change those settings in Power Options.

Method 1
Method 1 of 2:

Using Run, Command Prompt, or PowerShell

Download Article
  1. How.com.vn English: Step 1 Press Win+R (to open Run) or open Command Prompt or PowerShell.
    Pressing the Win + R key combination will open the Run window.
    • You'll find Command Prompt or PowerShell in your Start menu. Since PowerShell is replacing Command Prompt for many modern Windows 10 computers, you can also select PowerShell in the menu that pops up when you press Win + X.[1]
  2. How.com.vn English: Step 2 Enter the following command:
    shutdown -a. This command will cancel the scheduled shutdown for one time. You'll have to repeat this process if you want to cancel other scheduled shutdowns.
    Advertisement
  3. How.com.vn English: Step 3 Click OK (in the Run window) or ↵ Enter (in Command Prompt or PowerShell).
    It's below the place where you entered the code in the Run window and will prompt it to close.[2]
  4. Advertisement
Method 2
Method 2 of 2:

Using Power Options

Download Article
  1. How.com.vn English: Step 1 Open Settings.
    You can press Win + I to open Settings, or you can find it in your Start menu next to a gear icon.
  2. How.com.vn English: Step 2 Click System.
    It should be the first icon in the menu.[3]
  3. How.com.vn English: Step 3 Click Power and sleep.
    You should see this in the menu on the left side of the window.[4]
  4. How.com.vn English: Step 4 Click Additional power settings.
    This is towards the right side of the window.[5]
  5. How.com.vn English: Step 5 Click Change plan settings.
    You'll see this to the right of your current plan.
  6. How.com.vn English: Step 6 Click Change advanced power settings.
    It's under the general settings.
  7. How.com.vn English: Step 7 Double-click Sleep and Sleep After.
    Double-clicking these will expand their menus.
  8. Step 8 Click On Battery or Plugged in, select the arrow and choose "Never" (laptop only).
    If you want to change the setting for both of these options, repeat the process for the one you didn't already change.[6]
  9. Step 9 Click Setting, select the arrow and choose "Never" (desktop only).
    You will not see this if you're on a laptop.
    • Changing the "Sleep" settings to never will ensure that your computer never goes to sleep.
  10. How.com.vn English: Step 10 Double-click Hibernate after.
    A menu will expand below the header.
  11. Step 11 Click On Battery or Plugged in, click the arrow and choose "Never" (laptop only).
    If you want to change the setting for both of these options, repeat the process for the one you didn't already change.
  12. Step 12 Click Setting, click the arrow and choose "Never" (desktop only).
    You will not see this if you're on a laptop.[7]
    • These settings will ensure your computer never hibernates, which might drain your battery if your laptop is not plugged into a power source.[8]
  13. Advertisement

Expert Q&A

Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
      Advertisement

      Video

      Tips

      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!

      About This Article

      How.com.vn English: Darlene Antonelli, MA
      Written by:
      How.com.vn Technology Writer
      This article was co-authored by How.com.vn staff writer, Darlene Antonelli, MA. Darlene Antonelli is a Technology Writer and Editor for How.com.vn. Darlene has experience teaching college courses, writing technology-related articles, and working hands-on in the technology field. She earned an MA in Writing from Rowan University in 2012 and wrote her thesis on online communities and the personalities curated in such communities. This article has been viewed 155,105 times.
      How helpful is this?
      Co-authors: 5
      Updated: October 29, 2023
      Views: 155,105
      Categories: Windows 10
      Article SummaryX

      1. Press Win + R (to open Run) or open Command Prompt or PowerShell.
      2. Enter the following command: "shutdown -a".
      3. Click OK (in the Run window) or press Enter (in Command Prompt or PowerShell).

      Did this summary help you?

      Thanks to all authors for creating a page that has been read 155,105 times.

      Is this article up to date?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement