1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to Shutdown Windows 10 machine via Command Prompt or Batch file (Working Version)

Discussion in 'Windows 10 Tutorials' started by CandyCane, Nov 30, 2016.

  1. CandyCane

    CandyCane Administrator Staff Member Administrator Guest Post

    Messages:
    908
    Likes Received:
    0
    Trophy Points:
    16
    So the normal shut down command doesnt seem to work on Windows 10. It seems to looop and loop until we are forced to stop it...

    Create a batch file and save the following code:

    @echo off
    "c:\Windows\System32\shutdown.exe" /s /f /t 20
    pause



    S is for shutdown
    F is to force apps to close
    T is time so set that as you wish, or dont include it at all.

    That is it, you should be able to shut your windows 10 computer down via command prompt.

     
     
  2. Avatar

    Advertisement

Share This Page