CNG Service Defaults in Windows 10

Kernel Cryptography, Next Generation by Microsoft Corporation.

Default Settings

Startup type:Boot
Display name:CNG
Service name:CNG
Service type:kernel
Error control:critical
Group:Core
Path:%SystemRoot%\System32\Drivers\cng.sys
Registry key:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CNG

Default Behavior

CNG is a kernel device driver. In Windows 10 it is starting by the operating system Boot Loader as a part of the driver stack for the boot volume. If CNG fails to load or initialize, Windows 10 attempts to record the error details into Event Log and restart the PC, using the Last Known Good configuration. If the Last Known Good configuration cannot be applied or working improperly, Windows 10 startup process halts with a Stop error. If you disable or delete the CNG service, Windows 10 won't start.

Restore Default Startup Configuration for CNG

1. Run the Command Prompt as an administrator.

2. Copy the commands below, paste them into the command window and press ENTER:

sc config CNG start= boot
sc start CNG

3. Close the command window and restart the computer.

The CNG service is using the cng.sys file that is located in the %WinDir%\System32\Drivers folder. If the file is changed, damaged or deleted, you can restore its original version from Windows 10 installation media.