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

Keith W

New Member
This is quite a long read but please bear with me. I used to use a shutdown (.bat) script in win7 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 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. 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

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 know the answer. Please help !
 
Spot on. Thank you gentlemen. Will browse around to see if I can help anyone else with something simple. Doubt it though, having missed something so obvious this time. Thanks again.
 
Back
Top