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

  • Thread starter KeithWiddicombe
  • Start date
K

KeithWiddicombe

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 !

Continue reading...
 
Back
Top Bottom