Go through this guide to attempt to restore a windows server to boot properly:
https://learn.microsoft.com/en-us/troubleshoot/windows-client/performance/windows-boot-issues-troubleshooting