Hello! Windows Server is a system focused on the business sector. In addition, Microsoft developed it as a safe, functional, and practical system. However, it is also susceptible to failure. Such as errors in drivers, services, or parameters of both the system itself and other components. To solve this type of failure, the Redmond company has incorporated the Safe Mode. With this mode, the system will start in a basic state. In other words, it will only make use of a limited set of files and drivers. Consequently, it will be much easier to rule out bugs and problems. So by being able to enter the system using this mode, we can then reverse any changes responsible for the malfunction. For that reason, it is important to know how to use this function. So let’s see, how to start in safe mode in Windows Server 2019/2016.
How to start in safe mode from the system.
Before we go any further, it is important to clarify that the safe mode has two options:
- Safe mode: load basic controllers.
- Safe mode with network functions. Includes network drivers and services needed to access the Internet and other computers on the local network.
In order to set up the safe mode, it is necessary to start the system in the advanced mode. If you are running the system, then you have a couple of options to start in advanced mode:
- Press the Shift key and the off button at the same time. Once there, click on restart.
- Press the Win+I combination to enter the Windows Settings. Then follow the path: Update & Security> Recovery. Once there, click on Restart Now.
How to start in safe mode, using a Windows Server 2019/2016 installation media.
For this method, it is necessary to have some means of installing Windows Server. Either a DVD or a USB boot. Then, you have to start the process as if you were going to install the system. On the welcome screen, click on Next.
Please click on Repair computer.
A window with several options will be displayed immediately. Please click on Troubleshoot.
Then select Command Prompt:
This will cause the CMD to be deployed. Please run this command:
bcdedit /set {bootmgr} displaybootmenu yes
This is a command line tool to manage the data associated with the boot configuration of the system.
Once this line is executed, we will execute the following:
bcdedit /set {bootmgr} timeout 15
After executing this command, execute the Exit command to exit the console. And back to the previous menu, turn off the system.
When you reboot the system, you will see the boot manager. Please select Windows Server. Then, press F8 to enter advanced start options.
Then, just click on Safe Mode to start the system.
Eventually, the system will boot into Safe Mode.
Conclusion
Ultimately we have seen how to start in Safe Mode in Windows Server 2019/2016. This mode allows you to start the system with a minimum of drivers and files. This allows for troubleshooting. In addition, these instructions are common to both versions. I hope you find them useful in managing your servers. Before saying goodbye, I invite you to see our post about VMware on Windows 10. See you!
— Advertisement —
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
«The best Linux newsletter on the web»
UPDATED: March 2018
If you have worked on Windows 8 or newer, you will know that Microsoft has removed the F8 boot functionality. They did this to decrease boot times. What is odd is that they applied this logic to servers; I would not have. Regardless the F8 Safe Mode functionality is not truly removed, it is just turned off.
To turn F8 boot on in Server 2012 you need to get to an elevated CMD prompt. If your server is functional that is easy. If your server won’t boot (hence the need for F8) then you can boot off of a Windows Server install DVD and select REPAIR YOUR COMPUTER option, the Troubleshooting, then Command Prompt.
Once you have a Command Prompt (as an administrator) open enter the following commands which are self explanatory:
- bcdedit /set {bootmgr} displaybootmenu yes
- bcdedit /set {bootmgr} timeout 10
Reboot your machine and enjoy pressing F8 and getting back into SAFE MODE or LAST KNOWN GOOD to work out your problem.
This will also work on Windows 8 and Windows 10.
Note that the BCDEDIT commands do NOT work from PowerShell. They NEED to be run from CMD.EXE :
Thanks to a number of blogs including THIS one.
Thanks
10 May 2021
To enable F8 boot in Windows Server 2012 / Windows Server 2016, / Windows Server 2019 you need to go to an elevated CMD prompt.
If your server does not start (hence the need for F8), you can boot from a Windows Server installation DVD and select the option REPAIR YOUR COMPUTER, Troubleshoot, then Command Prompt.
Once you have opened a command prompt (as an administrator), enter the following commands:
bcdedit /set {bootmgr} displaybootmenu yes bcdedit /set {bootmgr} timeout 10 |
Restart your server and press F8
Views: 8519
Always eager to communicate with other system engineers and administrators. I enjoy all aspects of my job, designing, deploying and updating server, desktop, network and storage systems. I blog regularly and contribute wherever possible to the Microsoft community.
Number of visits :
Total : 1215703 Visits
Yesterday : 102 Visits
,
In this tutorial you ‘ll find instructions on how to enable the F8 key on Windows Server 2012, 2016 or 2019, in order to access the ‘Advanced Boot Options menu’ (Safe Mode, Safe Mode with Networking, etc.), if your server fails to start normally.
As you probably know in Windows Server 2012, 2016 and 2019, the F8 key is enabled by default in order to access the Advanced Boot Options menu when needed. But, if Windows does not function properly and especially if Windows is unable to boot normally, the F8 key does not work.
How to Turn On the F8 Boot Menu if Server 2012/2016/2019 Fails to Start.*
* Note: If you can boot to Windows, then you don’t need to apply these steps, because the F8 key is already enabled. So, test it, and only if it doesn’t work, open an elevated command prompt and give the two (2) commands mentioned below from Windows.
1. Boot the Server from a Windows Installation Media (DVD or USB).
2. At the Windows Setup screen press SHIFT + F10 to access command prompt, or choose Next –> Repair your computer –> Troubleshoot –> Advanced Options –> Command Prompt.
3. In command prompt, type the following commands in order:
- bcdedit /set {bootmgr} displaybootmenu yes
- bcdedit /set {bootmgr} timeout 10
4. Close all windows and reboot the server.
5. After reboot, press the F8 key at the Windows Boot Manager screen to access the Advanced Boot Options menu.
That’s it! Let me know if this guide has helped you by leaving your comment about your experience. Please like and share this guide to help others.
If this article was useful for you, please consider supporting us by making a donation. Even $1 can a make a huge difference for us in our effort to continue to help others while keeping this site free:
- Author
- Recent Posts
Konstantinos is the founder and administrator of Wintips.org. Since 1995 he works and provides IT support as a computer and network expert to individuals and large companies. He is specialized in solving problems related to Windows or other Microsoft products (Windows Server, Office, Microsoft 365, etc.).
Running Veeam Backup and Replication, a Microsoft Windows Server Domain Controller may boot in to safe mode and directory services restore mode.
About a week ago, I loaded up Veeam Backup and Replication in to my test environment. It’s a fantastic product, and it’s working great, however today I had a little bit of an issue with a DC running Windows Server 2016 Server Core.
I woke up to a notification that the backup failed due to a VSS snapshot issue. Now I know that VSS can be a little picky at times, so I decided to restart the guest VM. Upon restarting, she came back up, was pingable, and appeared to be running fine, however the backup kept failing with new errors, the event log was looking very strange on the server, and numerous services that were set to automatic were not starting up.
This specific server was installed using Server Core mode, so it has no GUI and is administered via command prompt over RDP, or via remote management utilities. Once RDP’ing in to the server, I noticed the “Safe Mode” branding on each corner of the display, this was very odd. I restarted the server again, this time manually trying to start Active Directory Services manually via services.msc.
This presented:
Event ID: 16652 Source: Directory-Services-SAM General Description: The domain controller is booting to directory services restore mode.
Screenshot:
The domain controller is booting to directory services restore mode.
This surprised me (and scared me for that matter). I immediately started searching the internet to find out what would have caused this…
To my relief, I read numerous sites that advise that when an active backup is running on a guest VM which is a domain controller, Veeam activates directory services restore mode temporarily, so in the event of a restore, it will boot to this mode automatically. In my case, the switch was not changed back during the backup failure.
Running the following command in a command prompt, verifies that the safeboot switch is set to dsrepair enabled:
bcdedit /v
To disable directory services restore mode, type the following in a command prompt:
bcdedit /deletevalue safeboot
Restart the server and the issue should be resolved!