A Windows Server 2016 OS will only successfully restart or shut down when installing Windows updates.
This is an Active Directory domain controller that is running at the Server 2016 domain level.
This server was infected with malware and viruses.
I was able to clean the malware and viruses using Symantec Antivirus, Malwarebytes, and the SFC and DISM commands. Now there are no longer any traces of malware or viruses but the server continues to hang while shutting down or restarting.
When shutting down or restarting the server will go through all of the proper shutdown steps and will then stay stuck at either the "Shutting down" or "Restarting" portion of the process and stays stuck until we hold down the power button on the server or until the power supply is powered off.
There have been too many changes to the server and Active Directory since the virus infections to justify using a past backup to restore the server so we would like to fix this issue so that the server will successfully shut down and restart.
What can be done to do this issue so we can successfully shut down and restart the server?