If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Rate Thread | Display Modes |
#1
|
|||
|
|||
Shutdown Bat File
Hello, everyone. From online research and my own experience I know that
a number of processes and apps on a Windows 10 platform can delay, and at worst, prevent platform shutdowns (forcing one to hold down the power button for turn-off). I've created the following batch file (must be run as administrator) to solve that problem on a Dell laptop that gets around this issue and would appreciate your thoughts: @echo off net stop COMSysAPP net stop SENS shutdown /s /t 001 I'm not saying this will solve all delayed shutdown issues but it does work for me with no ostensible ill effects. Thanks for your time. -- J. B. Wood e-mail: |
Ads |
#2
|
|||
|
|||
Shutdown Bat File
J.B. Wood wrote:
Hello, everyone. From online research and my own experience I know that a number of processes and apps on a Windows 10 platform can delay, and at worst, prevent platform shutdowns (forcing one to hold down the power button for turn-off). I've created the following batch file (must be run as administrator) to solve that problem on a Dell laptop that gets around this issue and would appreciate your thoughts: @echo off net stop COMSysAPP net stop SENS shutdown /s /t 001 I'm not saying this will solve all delayed shutdown issues but it does work for me with no ostensible ill effects. Thanks for your time. Did you try /f first ? https://docs.microsoft.com/en-us/win...mands/shutdown There must be some way to do it, without naming and shaming individual items. Paul |
#3
|
|||
|
|||
Shutdown Bat File
On 8/28/19 9:35 AM, Paul wrote:
Did you try /f first ? https://docs.microsoft.com/en-us/win...mands/shutdown There must be some way to do it, without naming and shaming individual items. Â*Â* Paul Thanks for the prompt replay, Paul. Executing just shutdown /f on my platform results in a sign-out (logout) rather than shutdown, with considerable delay until the login screen appears. Sincerely, -- J. B. Wood e-mail: |
#4
|
|||
|
|||
Shutdown Bat File
On 8/28/19 9:35 AM, Paul wrote:
Did you try /f first ? https://docs.microsoft.com/en-us/win...mands/shutdown There must be some way to do it, without naming and shaming individual items. Â*Â* Paul Some mo shutdown /s /f results in a display of a default time until the shutdown process begins. That is on top of the other behind-the-scenes reasons for the shutdown delays. Sincerely, -- J. B. Wood e-mail: |
#5
|
|||
|
|||
Shutdown Bat File
On Wed, 28 Aug 2019 08:45:12 -0400, J.B. Wood wrote:
Hello, everyone. From online research and my own experience I know that a number of processes and apps on a Windows 10 platform can delay, and at worst, prevent platform shutdowns (forcing one to hold down the power button for turn-off). I've created the following batch file (must be run as administrator) to solve that problem on a Dell laptop that gets around this issue and would appreciate your thoughts: @echo off net stop COMSysAPP net stop SENS shutdown /s /t 001 I'm not saying this will solve all delayed shutdown issues but it does work for me with no ostensible ill effects. Thanks for your time. Did you try /f first ? https://docs.microsoft.com/en-us/win...mands/shutdown There must be some way to do it, without naming and shaming individual items. Paul Thanks Paul & J.B. Wood for re-visiting shutdown efficiency. Last we looked at this issue on Win10, I think, was 7/16/18: o Tutorial for setting up a well-organized consistent efficient Windows menu system https://groups.google.com/d/msg/microsoft.public.windowsxp.general/eWU-jOkFRtU/ckLcKqDRBQAJ =============================================== shutdown.lnk Target=%windir%\System32\SlideToShutDown.exe ICONFROM: %SystemRoot%\System32\SHELL32.dll KEYBOARD: Shortcut Properties Shortcut key (just press "s") which will make the keyboard key Ctrl + Alt + S NOTE: There are lots of ways to shut down; this is only one. =============================================== reboot.lnk Target=C:\Windows\System32\shutdown.exe /r /f /t 5 /c "Reboot in 5 seconds!" ICON: %SystemRoot%\System32\cmmon32.exe KEYBOARD: Shortcut Properties Shortcut key (just press "r") which will make the keyboard key Ctrl + Alt + R =============================================== abortshutdown.lnk Target=%Windir%\System32\shutdown.exe -a ICON: C:\Windows\System32\Dxpserver.exe KEYBOARD: Shortcut Properties Shortcut key (just press "a") which will make the keyboard key Ctrl + Alt + Del NOTE: There are lots of ways to abort; this is only one. =============================================== Windows Central noted the distinction between real shutdown & faststartup: o How to disable Windows 10 fast startup (and why you'd want to) https://www.windowscentral.com/how-disable-windows-10-fast-startup "With fast startup enabled, choosing to shut down your PC might look like you're completely shutting things down, but in reality, your PC is entering a mix between a shutdown and hibernation." There is also this article from LifeHacker for "real" shutdown: o Flip Off 'Fast Startup' to Force Windows 10 to Shut Down for Real https://lifehacker.com/shutting-down-windows-10-doesnt-actually-shut-down-wind-1825532376 This shows how to make a shortcut for a "real" shutdown: o Shutting Down Doesn¢t Fully Shut Down Windows 10 (But Restarting Does) https://www.howtogeek.com/349114/shutting-down-doesnt-fully-shut-down-windows-10-but-restarting-it-does/ shutdown /s /f /t 0 Or, to prevent updates from installing during a shutdown: o How to Shut Down a Windows PC Without Installing Updates https://www.howtogeek.com/268982/how-to-shut-down-a-windows-pc-without-installing-updates/ shutdown -s -t 0 The PowerShell also comes with shutdown cmdlets, apparently: o How Many Ways to Shut Down and Restart Your Windows 10 Computer https://www.nextofwindows.com/ways-to-shut-down-and-restart-your-windows-10-computer Stop-Computer -ComputerName "Server01", "Server02", "Server03" Restart-Computer -ComputerName "Server01, "Server02", "Server03" In addition to SysInternals tools such as PsShutdown, with more switches: psshutdown -r - to reboot after shutdown psshutdown -s - to shut down without poweroff psshutdown -f - to force running applications to close psshutdown -a - to abort a shutdown psshutdown -h - to hibernate the computer psshutdown -k - to poweroff the computer psshutdown -o - to logoff the console user psshutdown -e - to shutdown with a reason code. If you run these from the command line, it's useful to be admin: o Winkey+R cmd Control+Shift+Enter ----- runs as admin o Winkey+R powershell Control+Shift+Enter ==== runs as admin Anything else to share with others for this Windows-10 shutdown Potluck? |
#6
|
|||
|
|||
Shutdown Bat File
On 8/28/19 5:45 AM, J.B. Wood wrote:
Hello, everyone.Â* From online research and my own experience I know that a number of processes and apps on a Windows 10 platform can delay, and at worst, prevent platform shutdowns (forcing one to hold down the power button for turn-off).Â* I've created the following batch file (must be run as administrator) to solve that problem on a Dell laptop that gets around this issue and would appreciate your thoughts: Â*Â*Â*Â*@echo off Â*Â*Â*Â*net stop COMSysAPP Â*Â*Â*Â*net stop SENS Â*Â*Â*Â*shutdown /s /t 001 I'm not saying this will solve all delayed shutdown issues but it does work for me with no ostensible ill effects.Â* Thanks for your time. KillSomeRuuning Tasks.bat Hi J.B., As Paul points off, you forgot "/f" to force off programs. I have a similar situation where I need to kill running programs that are not VSS friendly. echo off :: kill off select running taks that do not respond to Volume Shadow copy Service (VSS) msg * /TIME 7 Killing off selective tasks that are not Volume Shadow copy Service (VSS) Friendly echo Killing off selective tasks that are not Volume Shodow copy Service (VSS) Friendly echo. echo Asking nicely... taskkill.exe /IM chrome.exe taskkill.exe /IM brave.exe taskkill.exe /IM firefox.exe taskkill.exe /IM thunderbird.exe taskkill.exe /IM QBW32.EXE echo. echo. echo Sleeping for 10 seconds timeout /T 10 echo Cutting their legs off taskkill.exe /IM chrome.exe /f taskkill.exe /IM brave.exe /f taskkill.exe /IM firefox.exe /f taskkill.exe /IM thunderbird.exe /f taskkill.exe /IM QBW32.EXE /f echo. echo Sleeping for 1 seconds timeout /T 1 /KillSomeRuuning Tasks.bat Also, not what you asked, but there is a GUI utility for this that I adore called Power Off: http://users.telenet.be/jbosman/applications.html http://users.telenet.be/jbosman/pwroff30.zip -T |
#7
|
|||
|
|||
Shutdown Bat File
On 8/28/19 9:30 AM, T wrote:
AsÂ*PaulÂ*pointsÂ*off out Stinkin' typos |
Thread Tools | |
Display Modes | Rate This Thread |
|
|