after a hard reset because of electricity issue, error in windows foundation 2012r2: server did not finish checking license compliance. if the server is joined to a domain, make sure the server is connected to a domain controller. if the license compliance check cannot be completed, the server will automatically shut down in 9 days etc.
the server is a stand alone server in small company, with only 4 users. no trust relationship (checked in AD). Users could not connect to the server's shares.
I found that some services did not start: DFS namespace, net logon, software protection, windows time, driver foundation. All of them started OK manually from services management console. In event viewer application and services-Microsoft-windows-server infrastructure licensing-operational I found: error id 2 (first to occur) (The Forest Trust Check in the Licensing component did not pass because error 0x80004005 occurred in function fe6).
ID 38: The Forest Trust Check detected a condition in your environment that is out of compliance with the licensing policy. This server will be automatically shut down if the issue is not corrected in 9 day(s) 21 hour(s) 0 minute(s). Please look for additional events for Forest Trust Check to troubleshoot.
Event ID: 70
User count check did not pass because error 0x80004005 occurred in function f7.
Event ID: 50
Root domain check did not pass because error 0x8007054B occurred in function f1981 [EWEU].
The specified domain either does not exist or could not be contacted.
Make sure that the domain that this computer is joined is reachable. This server will automatically shut down if the issue cannot be corrected.
after the services were started manually those errors did not occur again, and the users can work as usual, and the log says that license check passed ok.
after restart the errors happened again.
I checked dns on the server, found no errors there, and made sure that on the NIC dns is set to the lan address of the server.
I also enabled tcpip v6 that was disable on that nic.
FSMO check was OK.
waiting for suggestions.