Read Command Line Parameters to try more commands. Why do some investment firms publish their market predictions? If Windows continually boots directly to Safe Mode and you can't make it stop, take a look at the tutorial below and then follow the advice in How to Stop a Safe Mode Loop at the bottom of the page. Replace the -s with -r to restart the PC. Wait while your computer or device restarts. Fortunately, there is a way to force Windows to start in Safe Mode if you can't get to Startup Settings in Windows 10 and 8, or the F8 menu (Advanced Boot Options) in Windows 7 and Vista, or even if you can't access Windows at all. Required fields are marked *, Force Shutdown or Restart from Command Line. I mean if we want to shutdown after 2 Hours! Then, to get to Safe Mode from a command prompt, you'll use a. Replace the 0 with your time limit. Why does a capacitor act as a frequency filter? When I go to reboot my laptop (one that I access remotely often), a lot of the time it will hang and a process will completely prevent it from shutting down or rebooting. Making the most of your one-on-one with your manager or other leadership, Podcast 281: The story behind Stack Overflow in Russian. Open Advanced Startup Options in Windows 10 or Windows 8, assuming you're using one of those operating systems. Cause . Time Required: Forcing Windows to restart in Safe Mode (or making it stop starting in Safe Mode) is moderately difficult and will probably take several minutes, at most. There are several iterations of the Safe Mode command prompt you can use, depending on why you need to restart in Safe Mode. Replace the 0 with your time limit. The same goes for Restart and Force Restart except for the base parameter (-r instead of -s), Normal Shutdown It is not needed for my Windows 7 to be shut down without any popups and furthermore, setting that key may result in very long shut downs. A kind of "reverse" of this trick also works to stop Windows from starting in Safe Mode. Then, to get to Safe Mode from a command prompt, you'll use a bcdedit command. If you are unsure, proceed reading. For more information see this article. To force Windows to restart in Safe Mode you'll need to access Advanced Startup Options in Windows 10 and Windows 8. Here the following is also proposed: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management, key name:ClearPageFileAtShutdown, dword value: 1. Advanced Startup Options (Windows 10/8): Tap or click Troubleshoot, then Advanced options, and finally Command Prompt. You can create a command script like this.. And save this script on desktop with the name of shutdown.cmd. Execute this command once Command Prompt is open: Assuming it was successfully executed (see Step 4 above), restart your computer and Windows should then start normally. To perform a Timed Force Restart, type in Shutdown –r –f –t 00. It even has a .reg file that you can download and run to make those changes for you. then? To perform a normal Restart, open Run (Start >> Run) and type in Shutdown –r . Michael Heine is a CompTIA-certified writer, editor, and Network Engineer with 25+ years' experience working in the television, defense, ISP, telecommunications, and education industries. Using a PNP over an NPN to activate a solenoid. is it shutdown -s -r -f? With Command Prompt open, execute the correct bcdedit command as shown below based on which Safe Mode option you'd like to start: Be sure to type whatever command you choose exactly as shown and then execute it using the Enter key. how about both restart and shutdown setting? Is wearing ACLU's "Let People Vote Pin" to the polling place considered electioneering? Did computer games for Commodore 64 really take "25 minutes" to load "if everything went alright"? Unfortunately, this process doesn't work with Windows XP. Is there any registry hack or anything that I can throw on my Windows 7 system that will force those programs to close? It only takes a minute to sign up. Also, I doubt why you would want to restart and shutdown?? Can we enter time in 3 or more digits? Asking for help, clarification, or responding to other answers. You could just shut down instead. Normal Shutdown is the term we’ve used here to mention the default Shutdown. True, Advanced Startup Options (and thus Startup Settings and Safe Mode) do automatically appear during Windows startup problems, but the lack of easy from-outside-of-Windows access is a little troubling. Tim Fisher has 30+ years' professional technology support experience. Windows 7 PCs Can't Shut Down or Restart. Registry setting to auto-end tasks at shutdown: Type regedit in run command and navigate to following path, HKEY_CURRENT_USER > Control Panel > Desktop > create string key called AutoEndTasks > set value to 1. There are a number of situations that could make it incredibly difficult to start Windows in Safe Mode. And this will shutdown your PC immediate. Win 7 API to set Power key to Sleep rather than Shutdown, Prevent reboot loop from critical error in win7, Windows couldn't shutdown, then It starts without aero, Prevent local computer rebooting (windows update) during fullscreen remote desktop session. Solution . Here's how to properly reboot (restart) a Windows 10, 8, 7, Vista, or XP PC. With Windows 7 or Windows Vista, start System Recovery Options using your installation media or a system repair disc.