Windows 10: Different Shutdown behavior from batch file than using Start>Power options

Discus and support Different Shutdown behavior from batch file than using Start>Power options in Windows 10 Performance & Maintenance to solve the problem; This is quite a long read but please bear with me. I used to use a shutdown (.bat) script in win7pro64 to backup my important stuff but couldn't make... Discussion in 'Windows 10 Performance & Maintenance' started by KeithWiddicombe, Dec 6, 2019.

  1. Different Shutdown behavior from batch file than using Start>Power options


    This is quite a long read but please bear with me. I used to use a shutdown (.bat) script in win7pro64 to backup my important stuff but couldn't make it work in win10 despite spending hours on the forums. It did work intermittently if I put it in the local logoff folder (group policies).


    So I put the cart before the horse and wrote a new batch file which did the backup first then shut down the machine which I launch from a desktop shortcut. I no longer have to rely on GP to execute it or not. Plus it gives me more shutdown options.


    It works perfectly BUT I get this annoying delay in shutting down or restarting. The following message appears in a blue box "You're about to be signed out. Windows will shutdown in less than a minute." with a Close button. Closing does not inhibit the delay. It just gets rid of the message. It is not a scheduled task.


    Mine is quite a quick machine, the latest in a long line of home-builds and I am an impatient SOB. This delay is a nuisance. PLEASE does anyone know how to disable it.


    It does NOT happen if I use any other power option.


    System: Asus 970 aura, AMD8350 @ 4.4gHz, 2x8gb Crucial @ 1600, 500gb 970 EvoPlus nvmi, nVIDEA GT610

    Running: Win10 Pro 1903 build 18362.476 (64bit)


    sfc etc. reveal no problems. No other idiosyncratic behaviour.


    Commands used in batch file (after CHOICE):


    IF ERRORLEVEL ==6 exit
    IF ERRORLEVEL ==5 SHUTDOWN /f /r /fw
    IF ERRORLEVEL ==4 SHUTDOWN /l
    IF ERRORLEVEL ==3 SHUTDOWN /h
    IF ERRORLEVEL ==2 SHUTDOWN /r
    IF ERRORLEVEL ==1 SHUTDOWN /s


    Someone out there knows how, I am sure. Please Help !

    :)
     
    KeithWiddicombe, Dec 6, 2019
    #1

  2. no full shutdown on asus minilaptop

    Hi,

    The issue that you've encountered regarding the shutdown behavior of your PC is may be caused by some settings or program conflicts. To sort out your concern, we suggest that you manage the
    Shutdown settings from the Control Panel. To do this, you may follow the steps below:

    • Click Start, type Control Panel, and then press
      Enter.
    • On the Control Panel search box, type Power Options and select it from the search results.
    • Click Choose what the power buttons do.
    • If the options under the Shutdown settings is grayed out, click the
      Change settings that are currently unavailable to make it enable.
    • Uncheck Turn on fast startup (recommended) and then click
      Save changes
      .
    • Once you’re done, you may check if the issue persists.

    Let us know if the suggestion works for you.
     
    Joseph Ban, Dec 6, 2019
    #2
  3. Batch file

    thank you for your reply. how to merge the codes so that the batch file does this

    the batch file displays the options below

    1. open the *.spl file in notepad
    2. delete the *.shd and *.spl files
    3.exit

    commands execute as options are selected
     
    Sandeep Bhugoo, Dec 6, 2019
    #3
  4. A123 Win User

    Different Shutdown behavior from batch file than using Start>Power options

    How to change shutdown behavior in Fall Creator's update?

    How can the shutdown behavior be changed while logged on in the Fall Creator's update? I have observed that clicking shutdown in the power menu behaves differently than the shutdown on the welcome screen with no accounts logged on. The previous version
    of Windows would sign off the user and shutdown. I disabled fast startup and the behavior is the same.

    **Moved from: Windows / Windows 10 / Desktop, Start, & personalization / Start Menu**
     
    A123, Dec 6, 2019
    #4
Thema:

Different Shutdown behavior from batch file than using Start>Power options

Loading...
  1. Different Shutdown behavior from batch file than using Start>Power options - Similar Threads - Different Shutdown behavior

  2. Starting two programs from a single batch file is different than starting two programs in...

    in Windows 10 Ask Insider
    Starting two programs from a single batch file is different than starting two programs in...: First Concrete example: I run “Start Resident Evil 2” from a batch file I run “Start Resident Evil 2 Trainer” from another batch file Everything works! Okie dokie... So let’s simplify it a bit... I run “Start Resident Evil 2” and “Start Resident Evil 2 Trainer” from the...
  3. New Behavior: Failure To Execute Power Options

    in Windows 10 Support
    New Behavior: Failure To Execute Power Options: Version 1909 (18363.1082) I've been running WinX since I got booted from my old, reliable Win 7 Pro last January, and never had a problem with Power settings until the past few weeks. It's not consistent, but often the display stays up indefinitely and the computer never...
  4. use Task Scheduler to start batch file, minimized?

    in Windows 10 Support
    use Task Scheduler to start batch file, minimized?: I have already tried to find the solution using google, but literally none of them worked! At one point I edited the file/folder names, and changed the locations to those in the "solutions" but even that didn't work! You are my last hope! is there any way, any at all, you...
  5. Color shutdown options from start icon

    in Windows 10 Customization
    Color shutdown options from start icon: Sometimes when in a rush i hit restart instead of shutdown. Is there a way to colorize " shutdown RED" ..sleep moon turns yellow . Restart can be some other color 151773
  6. Batch File in start up

    in Windows 10 Network and Sharing
    Batch File in start up: I have created a batch file for cleaning up all temporary and unnecessary file which can be run any time. I want to add this file with the startup of windows 10, so that when ever I start the windows, the file will automatically run and clean up my PC. In windows 7, you can...
  7. Start a program from a batch file

    in Windows 10 Software and Apps
    Start a program from a batch file: I'm trying to create a batch file that should - call another batch file - start a program and then wait for the program to close - call another batch file My goal with this is to work around an issue in Windows 10 where the screensaver won't work when I have my game...
  8. Start a program from a batch file

    in Windows 10 Software and Apps
    Start a program from a batch file: 4 Apps of mine run a batch file that -tries- to call/start and EXE program. These Batch files need to work with OS XP thru Win 10. Win 10 has a pop-up window asking user if its okay to run/execute my EXE. No other Win version does this and thus I suspect a timing problem....
  9. How to use psshutdown.exe to create a batch file to shutdown my PC

    in Windows 10 Software and Apps
    How to use psshutdown.exe to create a batch file to shutdown my PC: I am trying to use psshutdown.exe to create a batch file to shutdown my PC. I want the equivalent of "Shut Down" from the start menu. Should I use the switch -k or -s. I do not understand the difference between these arguments and I want to make sure I have a...
  10. Restart Take Much Longer to Start Than If Started From Shutdown

    in Windows 10 Performance & Maintenance
    Restart Take Much Longer to Start Than If Started From Shutdown: On my new HP Laptop (2.3ghz), when I start Windows 10 from a power on start, Win10 starts in about 40 seconds. When I restart, it takes about 1 minute and 35 seconds to start. Why the huge difference in the two? On each of my Win 7 machines there is just a 2 or 3 second...

Users found this page by searching for:

  1. windows 10 batch file that runs program then shutdowns windows on exit