Event ID - 8240

Event Id8240
SourceMicrosoft-Windows-IDMU-ServerForNIS
DescriptionFailure getting computer name: %1.
Event Information According to Microsoft :

Cause :

This event is logged when failure getting computer name.

Resolution :

Fix possible failures for Win32 socket initialization API

Server for NIS is closing because it experienced a failure attempting to initialize the Windows socket layer. The full text of the error message in Event Viewer contains the exact Windows error code.

To correct the error, try the following steps in order, moving on to the next step only if the current action failed to clear the error condition:
  1. Free virtual memory by closing unused applications.
  2. Restart the Server for NIS service.
  3. Restart the computer on which the error was generated.
Verify :

Open the Services MMC and verify that Server for NIS is operational. If the Server for NIS service properties show that the service is not running, errors are preventing Server for NIS from operating normally.

To verify that Server for NIS is running
  1. Click Start , point to Administrative Tools , and then click Services .
  2. In the Results pane of the Services MMC, double-click Server for NIS .
  3. In the Service status area of the Server for NIS Properties dialog box, verify that the Server for NIS service shows as Started.
Use the ypcat command on a client computer in the domain on which the error was generated to verify that the Server for NIS service is available.

To use the ypcat command to verify Server for NIS service availability:
  1. On a client computer in the domain on which the error was generated, open a Windows Command Prompt with elevated privileges. To do this, right click Command Prompt on the Start menu, and then click Run as administrator .
  2. Type the following command, and then press Enter: ypcat -h NISServer- d Domain Mapname. NISServer represents the name of the server on which you want to verify that the Server for NIS Service is available. Domain represents the domain name on which you want to verify that the Server for NIS service is available. Mapname represents the name or nickname of a specific NIS map that the server on which you want to verify Server for NIS availability is expected to update.
  3. If you are prompted to provide the domain administrator account name and password, type the account name and password, and then press Enter .
  4. The ypcat Windows command-line utility prints the values of all keys from the NIS database specified by Mapname, which can be a map name or a map nickname. If the ypcat utility returns a list of key values for the maps you specified, the Server for NIS service is available.
Reference LinksEvent ID 8240 from Microsoft-Windows-IDMU-ServerForNIS

Catch threats immediately

We work side-by-side with you to rapidly detect cyberthreats
and thwart attacks before they cause damage.

See what we caught

Did this information help you to resolve the problem?

Yes: My problem was resolved.
No: The information was not helpful / Partially helpful.