Windows generates Event ID 4977 when the IPsec subsystem successfully completes Main Mode negotiation and establishes a security association. This occurs during the first phase of IPsec tunnel establishment where two endpoints authenticate each other and agree on security parameters including encryption algorithms, authentication methods, and key exchange protocols.
The event contains detailed information about both endpoints including IP addresses, authentication methods used (certificates, pre-shared keys, or Kerberos), encryption algorithms selected, and the lifetime of the established security association. This data proves invaluable for security auditing and troubleshooting IPsec connectivity issues.
Main Mode security associations serve as the foundation for subsequent Quick Mode negotiations that establish the actual data encryption tunnels. Without successful Main Mode establishment logged by Event 4977, no secure data transmission can occur between the endpoints. The event helps administrators verify that IPsec policies are working correctly and that secure communications are being established as intended.
In Windows Server 2025 and Windows 11 24H2, Microsoft enhanced the event logging to include additional cipher suite information and improved correlation with related network events, making it easier to track the complete IPsec negotiation process.