Доброго дня!
Столкнулись с проблемой, которую уже с месяц или более не можем решить. Костыли, да и только. Вот и обращаюсь к сообществу впервые, за помощью.
Общая картина следующая — есть 3 офиса, соответственно 3 разные клиентские сети (и 3 разных внешних IP), в каждой от 4 до 20 ПК.
В каждом офисе по одному МФУ — Brother MFC-L2720DWR, сетевой. В третьем еще есть принтер, которые по USB подключен, но это не столь важно сейчас.
Есть терминал — точнее говоря виртуалка, на ней стоит Windows Server 2016 Standart. Долго не обновлялся, но после возникновения ошибки обновляли — не помогло.
Эти три офиса пользуются одним и тем же сервером, разграничений особых нет.
Работали ранее просто по RDP подключению, напрямую к серверу. Сейчас работают по VPN туннелям, но не суть — проблема возникла еще при прямом подключении.
И вот теперь суть — раз в n-ое количество времени, какого-то конкретного промежутка нет, вылезает в журнале приложений следующая ошибка:
«Имя сбойного приложения: svchost.exe_ScDeviceEnum, версия: 10.0.14393.0, метка времени: 0x57899b1c
Имя сбойного модуля: ntdll.dll, версия: 10.0.14393.4530, метка времени: 0x60e33cac
Код исключения: 0xc0000005
Смещение ошибки: 0x00000000000661f3
Идентификатор сбойного процесса: 0x1d4
Время запуска сбойного приложения: 0x01d78a564bdf6139
Путь сбойного приложения: C:\Windows\System32\svchost.exe»
Иногда сбойный модуль не ntdll.dll, а cfgmgr32.dll.
Это журнал приложений. Буквально через 2 секунды в журнале системы сыпятся следующие ошибки:
1)Служба Network Connection Broker была неожиданно завершена. Это произошло 1 раз(а). Следующее корректирующее действие будет предпринято через 5000 мсек: Restart the service.
2)Служба Program Compatibility Assistant Service была неожиданно завершена. Это произошло 1 раз(а). Следующее корректирующее действие будет предпринято через 60000 мсек: Restart the service.
3)Служба Smart Card Device Enumeration Service была неожиданно завершена. Это произошло 1 раз(а). Следующее корректирующее действие будет предпринято через 120000 мсек: Restart the service.
4)Служба Windows Audio Endpoint Builder была неожиданно завершена. Это произошло 1 раз(а). Следующее корректирующее действие будет предпринято через 60000 мсек: Restart the service.
5)Служба Device Association Service была неожиданно завершена. Это произошло 1 раз(а). Следующее корректирующее действие будет предпринято через 60000 мсек: Restart the service.
6)Служба Data Sharing Service была неожиданно завершена. Это произошло 1 раз(а). Следующее корректирующее действие будет предпринято через 10000 мсек: Restart the service.
7)Служба Windows Driver Foundation — User-mode Driver Framework была неожиданно завершена. Это произошло 1 раз(а). Следующее корректирующее действие будет предпринято через 120000 мсек: Restart the service.
8)Служба Перенаправитель портов пользовательского режима служб удаленных рабочих столов была неожиданно завершена. Это произошло 1 раз(а). Следующее корректирующее действие будет предпринято через 60000 мсек: Restart the service.
И дальше еще штук 8-10 служб внезапно останавливаются, связанные с Hyper-V и прочим.
После этого обращаются сотрудники компании, с просьбой восстановить работу принтера. То есть сама служба по себе работает, но из-за сбоя службы, принтеры, проброшенные по RDP-соединению, отваливаются. И на сервере их не видно.
Сами принтеры локально в это время спокойно печатают.
Пока что временно помогает полностью погасить сеанс пользователя и заходить под ним заново, тогда принтер по умолчанию снова пробрасывается на сервер и можно дальше работать.
Сразу напишу, что было опробовано для решения проблемы:
1) Обновление Windows server 2016 и для теста пару клиентских ПК (там установлены в основном Windows 10).
2) chkdsk на терминале
3) sfc scannow на терминале
4) DISM check и restore health на терминале
5) Настроена изоляция драйверов и включение/отключение easy print (пробовали разные варианты)
6) Удалены лишние (не понятно откуда взявшиеся) драйвера на самом сервере
7) Проверено на вирусы Drweb CureIT
Ничего из вышеперечисленного не помогло.
Что-то еще я в мучительных попытках делал, находил на просторах интернета, но уже не вспомню.
К слову, не знаю, поможет или нет это — сейчас настроено автоматическое отключение неактивных пользователей спустя 6 часов. Это для того, чтобы пользователи, забывшие отключится от сервера полноценно, отключились автоматом.
Очень прошу помощи, не можем найти решение!
Знаем про ScrewDrivers, однако хотелось бы найти и решить в корне проблему, а не обходится другими утилитами (к тому же платными).
Заранее благодарю за помощь.
Do your Windows 2016 Servers have mysterious shutdown issues?
Today, I tried to troubleshooting windows 2016 mysterious shutdown for my client, I found it was NT Authority\System that shutdown the system because the windows 2016 server license was expired, this is easy enough to solve the issues, I thought.
I went to the system settings and type the product key, but it shows the error message “This edition cannot be change be upgraded”, seriously, I cannot use the MSDN product for upgrading it from evaluation version to Data Center (or Standard) version?????
I don’t believe this, so I tried another way via DISM command for this as follow:
- Open an elevated command prompt
-
Run DISM /Online /Set-Edition:ServerStandard /ProductKey:your-product-key-here /AcceptEula
Ps. If you would like to upgrade to Data center version, you just need to change ServerStandard to ServerDatacenter.
- Reboot server after the operation completed successfully.
Ya! Activated successful. We won’t get any mysterious shutdown now.
Hope you enjoy this post.
Cary
Problem:
Some of the virtual servers in my infrastructure kept shutting down unexpectedly. All of these VMs are Windows Server 2016 evaluation (datacenter edition) and all my others VMs (Linux, Windows 7) wasn’t presenting these symptoms. Obviously, the problem related to the VM and the operating system itself.
Probably you have tried (or should try first) these solutions already here: Computer Shuts Down Randomly
Solution:
This is another simple solution but difficult to identify. I am using Windows Server 2016 evaluation in my test lab and didn’t notice that the evaluation period has expired. So, I need to rearm the server license to extend the trial period.
Windows will shut down on purpose, to remind you to activate the license! After solving this issue, the servers won’t shut down again, until you rearm the license again (You could do it up to 6 times). Of course, this is not for commercial purpose, only for testing labs.
Follow these steps:
- Open Windows PowerShell
- To check current license status, run slmgr -dlv
- To ream Windows license, run slmgr -rearm.
- Restart Windows, run Restart-Computer
For more information go to this well-written post about how to extend the Windows license. Windows Server 2016 Evaluation: How to extend the Trial Period
Note: Curious thing, I had the same issue two years ago, and I totally forgot about it. That is why I consider important documenting everything, even though it could be a simple thing like this, the solution will change depending on your environment/situation.
Juan Mulford
Hey there! I’ve been in the IT game for over fifteen years now. After hanging out in Taiwan for a decade, I am now in the US. Through this blog, I’m sharing my journey as I play with and roll out cutting-edge tech in the always-changing world of IT.
Привет. Недавно столкнулся с очень неприятной ситуацией — часть серверов начала самопроизвольно выключаться. Какой — либо закономерности в выключениях проследить не удавалось. Единственное что объединяло серверы — это то что на них была установлена ОС Windows Server 2012 или выше, и большая их часть имеет роль терминальных. Ах да, еще все эти серверы — виртуальные и работают под управлением Hyper V. Хочу сегодня рассказать, в чем была проблема.
Конечно, любая диагностика должна начинаться с анализа логов. И вот какое событие удалось обнаружить непосредственно перед выключениями серверов – событие 1074, user32:
The process C:\Windows\system32\winlogon.exe (DC) has initiated the power off of computer DC on behalf of user NT AUTHORITY\SYSTEM for the following reason: No title for this reason could be found
Reason Code: 0x500ff
Shutdown Type: power off
Comment:
По ним становится понятно, что работа завершается штатно. Что в общем то позволяет исключить влияние железа, хотя оно и так было исключено, т. к. все серверы виртуальные. Под подозрение попал гипервизор, но рысканье вдоль и поперек по логам ни какого результата не дало. События относящиеся к завершениям работы не имели отношения к инициализации завершения работы. Говорят, что виртуальные машины могут в редких случаях произвольно выключаться, если есть проблемы со свободной памятью, но в моем случае памяти было более чем достаточно.
В общем думаю хватит томить, и пора рассказать вам, в чем же в итоге было дело. Подключившись по RDP, я сидел и размышлял, что же может быть причиной подобного завершения работы. И вот из-за бездействия меня выбило на экран ввода пароля, где я обнаружил вот такой экран:
Обратите внимание на нижний угол:
Да, это мать его, завершение работы системы. Оказывается с 2012 винды MS сделали эту кнопку доступной при подключении по RDP.
Отвечает за эту кнопку параметр в групповой политике –
Computer Configuration – Policies – Windows Settings – Local Policies – Security Options – Shutdown: Allow system to be shut down without having to log on.
Отключаем его и всё, возможности выключить сервер у пользователей не будет.
Почему в моем случае этот параметр оказался включенным – остается загадкой. Скорее всего кто-то когда-то давным-давно его включил. Хотя, не исключаю, что он оказывается включенным при переходе с 2008 домена, проверять, честно говоря, лень. Кто в курсе, напишите в комментариях, в каком состоянии находится этот параметр при добавлении контроллера домена Windows 2012 в домен с уровнем 2008r2 или ниже.
В общем и целом, после изменения этого параметра мистические выключения прекратились.
Надеюсь, информация окажется вам полезной.
Why Does My Windows Server Keep Restarting?
Is your window server on an uncontrollable loop of restarting? If so, there could be many reasons why this is happening.
Some of the reasons are as follows:
- Hardware failure:
- RAM and deteriorating condition of the slot
- Faulty hardware
- Overheating
- Working conditions of the CPU
- Problem and infestation through external devices
Updates: You may have recently updated your Windows server. Viruses and other malware may cause your server to keep restarting. Malware infection is one of the leading causes of restarting continuously.
Outdated drivers: Outdated drivers are another cause. They may prompt your Windows server to keep restarting.
Default settings: If an automatic restart is the default setting on your Windows server, then it can keep restarting. People often do not even consider this as a reason and discard it without checking their default settings.
There are already too many problems going on in the world. Your windows server 2012 restarting continuously shouldn’t add to your set of problems.
The easiest way to prevent it from restarting is to find out the reason for the problem.
You can easily fix the constant restarting. Often, the default settings are set on the option of an automatic restart. We don’t even check to see our settings.
Therefore, check and ensure that your automatic restart is not your default setting.
- Switch on the device.
- Be alert when you turn on your device.
- Press and hold the F8 key for a few seconds.
- Do this before the Windows logo appears on the screen.
- Doing this will bring up the boot menu.
- Choose the safe mode from the listed options.
- Now, boot your device through the safe mode.
- Next, press the combination of Windows Key and letter R key.
- This will prompt a run dialog box.
- In the blank field, enter “sysdmm.cpl” and click OK.
- Following this, move on to the advanced tab.
- Click on the settings button. You will find it under the start-up and recovery section.
- Navigate to the automatic restart option. It is present under system failure.
- Unselect it if it is the default setting.
- Make sure to check the box beside, “write an event to the system log.”
- Selecting it will keep a record of the reoccurring problems in the system.
- Click on OK and save your changes.
Windows Server 2012 R2 is stuck on restart
If your windows server 2012 r2 keeps on restarting, try checking the method mentioned above.
Method 1:
- Check the default settings, as mentioned above.
- Use the command prompt and press F8. Boot the device under safe mode.
Method 2:
Alternatively, you can use the following method to stop your windows server r2 from restarting.
- Press the F8 key to launch the command prompt.
- As the command prompt opens up, type the following in the blank field: “wmic logicaldisk get name.”
- Following this, type in “dism.exe / image: C:\ /cleanup-image /revertpendingactions.”
- The device will reveal the image.
- Most probably, the image will be D:.
- If this does not work for you, consider seeking a professional opinion.
Windows Server 2012 stuck on installing updates
This is a bit complicated and can even result in some loss. So, alert yourself and read and follow the instructions carefully.
- Click on the search icon.
- Input “regedit” into the blank field. (Don’t type in the quotes).
- Press the enter key.
- Navigate to the following path:
“HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\ProfileList”
- To begin with, make a backup copy of the registry. You can lose your data, so make sure to create a backup copy.
- You can easily fix your mistakes, even if you end up losing data.
- Go through the profile list ID’s.
- See if you find out some with the profile image path.
- If you find these, delete them.
- Exit the registry editor and restart your computer.
- See if the problem persists.
Windows Server 2012 R2 VM stuck on restarting
Method 1:
- Begin with checking the default settings.
- Reboot under the safe mode.
Method 2:
- Go to the registry editor and navigate to the following path:
“HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\ProfileList”
- Ensure that you have a backup copy of the registry. This way, you will not lose data even if you end up making a mistake.
- Go through the profile list ID’s and look for the ones with the profile image path.
- Delete these files as you find them.
- Exit the registry editor and restart your device.
Check if the problem still exists. If it does, seek a professional opinion.
Windows Server 2012 windows update is stuck
If the Windows server 2012 freezes on the Windows update, the problem may lie in faulty hardware parts. Some of the hardware parts that may cause it to freeze on updates are:
RAM
- In the case of RAM or Random Access Memory, begin by checking the RAM.
- Check the condition of the slot.
- For this, remove the RAM from the slot very carefully. Clean both of them.
- Insert the RAM back into the slot.
- See if the problem persists.
CPU
CPU is the most important component of your device. Since it is the computer’s brain, if there is a problem with the CPU, then there could be other problems as well.
Overheating can cause your Windows server 2012 to freeze on windows updates.
- For this, check if the CPU is working properly.
- Tidy the CPU.
- Remove the dust and clean the slots.
- Ensure that the fans and the surrounding components are clean.
- Restart your computer.
- Check to see if the problem persists.
External Devices
External devices can also create this problem and put your device on a loop of updating your computer.
- Begin with unplugging all external devices.
- Restart your computer.
- Check to see if there is any problem.
- If there is no further problem, it means that there is a predicament in your external device.
- You can plug the external devices one by one to identify which is the faulty external device.
- Remember to restart your computer every time you unplug an external device, or else you might not find the faulty device.
Windows Server 2012 won’t reboot after update
For fixing a Windows server 2012 that won’t reboot after an update, try the following method:
- Reboot your windows server 2012 without installation of media.
- For this, press the power button. A loop of white circles will appear on the screen.
- Press the power button again to power off the server. Switch on using the power button again.
- Turn it off again when the circles appear. Start the server for the third time.
- This will initiate the preparing automatic repair option. It will take about 3-5 minutes.
- Reboot to recovery mode and click on troubleshoot to choose from recovery mode options.
- Choose an option. Click on troubleshoot.
- The advanced options screen will appear.
- Now, click on the command prompt.
- As the command prompt opens, type to input the following: “dism / image: C: \ /cleanup-image /revertpendingactions”. Press enter.
- This command will navigate drive C. If it does not exist on drive C, change it to a different letter.
- If you are not sure about its location, type dir c: and press enter. Try dir d: if you are still unable to locate it.
- Next, type exit and press enter.
- Shut down your device.
- Use the power button to reboot it again.
Windows Server 2012 keeps crashing
If the server keeps on crashing, try the methods mentioned above. Some of them are as follows:
- Check the hardware components. Clean the components and insert them again.
- Delete all the unwanted and bad registry files. After doing this, exit the registry and restart the computer to see if the problem persists.
- You can also try rebooting under the safe mode as instructed above.
Windows Server 2016 keeps shutting down
Your Windows server 2016 can keep shutting down because of an infestation by a virus and other such malware.
- To check if this is why your server keeps shutting down, run a complete virus scan.
- You can use Windows Defender or any other famous security virus detection software.
- The software will go through your system and find malware and harmful viruses.
- It will delete them for you. Restart your computer.
- Check to see if the problem still persists.
Windows Server 2016 has an unexpected shutdown
In case of an unexpected shutdown, the problem can be the same.
Method 1:
- Run a virus scan using Windows Defender or any other virus and malware detection software.
- After the software looks through your system and finds and deletes them, restart your device to see if the problem persists.
How to Fix Windows Server 2016 that keeps crashing
To fix a Windows server 2016 that keeps crashing, try restoring from recovery environment.
Method 1
Before you use this method, remember that you can only use it if you have enabled a system restoration before the Windows server keeps crashing.
Furthermore, it is important to have a valid restore point.
- Boot your server to the recover environment.
- Choose the desired option from the screen. Then, click on troubleshoot.
- When the advanced options appear on the screen, select system image recovery.
- The screen will display user profiles. Choose the user that has administrative privilege.
- Type in the password and click on continue.
- Select a restore point and use the wizard to restore the server.
- Reboot the system finally.
Windows Server 2012 update is stuck
- Consider updating your drivers. Outdated drivers can cause a loop of updates or freeze on updates.
- This can point to the fact that your hardware and software components are unable to communicate well. You can manually update the drivers.
- Go to the manufacturer’s website.
- Look for drive installers.
- Install the right one for your device.
Windows Server 2016 keeps checking for updates
- Again, this could be because of outdated drives.
- Update them, as mentioned above.
- You can also check the hardware components and see if they work properly and to the best of their abilities.
Why won’t Windows server 2016 install updates?
Your Windows server 2016 is probably not installing updates because of the Windows update agent’s incompatible RTM version. Fix this by installing the latest version.
- Locate the file in the Windows update catalog and download it.
- Also, you can access the latest version from the cumulative security update.
Windows Server 2016 is not activated
- Go to Run.
- Type “slui”.
SLUI 1 shows the activation status window.
SLUI 2 displays the activation window.
SLUI 3 displays the “change product key” window.
SLUI 4 displays the “call Microsoft and manually activate” window.
- Enter your product key