5066(S, F): A cryptographic function operation was attempted.

This event generates in BCryptAddContextFunction() and BCryptRemoveContextFunction() functions. These functions are Cryptographic Next Generation (CNG) functions.

This event generates when cryptographic function was added or removed from the list of functions that are supported by an existing CNG context.

For more information about Cryptographic Next Generation (CNG) visit these pages:

This event is used for Cryptographic Next Generation (CNG) troubleshooting.

There's no example of this event in this document.

Subcategory: Audit Other Policy Change Events

Event Schema:

A cryptographic function operation was attempted.


Security ID:%1

Account Name:%2

Account Domain:%3

Logon ID:%4

Configuration Parameters:







Return Code:%11

Required Server Roles: None.

Minimum OS Version: Windows Server 2008, Windows Vista.

Event Versions: 0.

Security Monitoring Recommendations

  • Typically this event is required for detailed monitoring of CNG-related cryptographic functions. If you need to monitor or troubleshoot actions related to specific cryptographic functions, review this event to see if it provides the information you need.