|
本帖最后由 fulibo 于 2025-6-13 18:37 编辑
目前我自己收集到的关于日志的设置!
官方不建议这样操作!
管杀不管埋!
出了问题不要找我!
20250613另一个办法!
Windows Registry Editor Version 5.00
;事件日志,如应用程序日志、硬件事件日志、Internet Explorer 日志、密钥管理服务日志、
;参数日志、安全日志、系统日志、Windows PowerShell 日志和状态日志
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Application]
"Start"=dword:00000004
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\HardwareEvents]
"Start"=dword:00000004
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Internet Explorer]
"Start"=dword:00000004
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Key Management Service]
"Start"=dword:00000004
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Parameters]
"Start"=dword:00000004
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Security]
"Start"=dword:00000004
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\System]
"Start"=dword:00000004
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Windows PowerShell]
"Start"=dword:00000004
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\State]
"Start"=dword:00000004
========
Windows Registry Editor Version 5.00
;禁用日志,不覆盖旧文件
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Application]
"MaxSize"=dword:00000400 ;将每个事件日志的最大文件大小限制为1MB,默认值通常为20MB左右
"Retention"=dword:00000001 ;表示日志文件达到最大大小时,覆盖旧事件,环形日志模式
"AutoBackupLogFiles"="0" ;禁用日志自动备份
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\HardwareEvents]
"MaxSize"=dword:00000400
"Retention"=dword:00000001
"AutoBackupLogFiles"="0"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Internet Explorer]
"MaxSize"=dword:00000400
"Retention"=dword:00000001
"AutoBackupLogFiles"="0"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Key Management Service]
"MaxSize"=dword:00000400
"Retention"=dword:00000001
"AutoBackupLogFiles"="0"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Parameters]
"MaxSize"=dword:00000400
"Retention"=dword:00000001
"AutoBackupLogFiles"="0"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Security]
"MaxSize"=dword:00000400
"Retention"=dword:00000001
"AutoBackupLogFiles"="0"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\System]
"MaxSize"=dword:00000400
"Retention"=dword:00000001
"AutoBackupLogFiles"="0"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Windows PowerShell]
"MaxSize"=dword:00000400
"Retention"=dword:00000001
"AutoBackupLogFiles"="0"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\State]
"MaxSize"=dword:00000400
"Retention"=dword:00000001
"AutoBackupLogFiles"="0"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl]
"LogEvent"=dword:00000000 ;不将事件写入系统日志
;禁用 RSoP 日志记录
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Diagnostics]
"GPSvcDebugLevel"=dword:00030002
;禁用WfpDiag.ETL日志
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BFE\Parameters\Policy\Options]
"CollectNetEvents"=dword:00000000
;禁用系统日志
[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Windows Error Reporting]
"LoggingDisabled"=dword:00000001
;禁用事件日志记录
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL]
"EventLogging"=dword:00000000
;禁用日志记录
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\PCHealth\ErrorReporting]
"LoggingDisabled"=dword:00000001
;默认值为 1。 默认值指示已启用 WMSVC 日志记录。 如果将键值设置为 0,则会禁用 WMSVC 日志记录
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WebManagement\Server]
"EnableLogging"=dword:00000000
;关闭Netlogon 日志记录,域控制器与客户端之间的身份验证、DC 定位器、帐户锁定等关键操作的日志
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters]
"DBFlag"=dword:00000000
;禁用用户辅助日志记录
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist]
"NoLog"=dword:00000001
|
|