This issue may occur if the AutoBackupLogFiles key was not created. The best resolution is to disable login success.
Add registry keys AutoBackupLogFiles to the following location:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Security
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Application
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\System
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\DNS Server
Value: AutoBackupLogFiles
Type: DWORD
Data value: Value not present or 0 (zero) equals "disabled." (This is the default.) Any non-zero value equals "enabled."
You must restart the computer or clear the corresponding event log before the new behavior takes effect.
Hope this resolves your Query!!
-------
--If the reply is helpful, please Upvote and Accept it as an answer--