症状
在 Windows 中,可能会在应用程序日志中记录以下事件:
Provider
[Name] Microsoft-Windows-User Profiles Service
[Guid] {GUID}
[EventSourceName] profsvc
EventID 1530
message similar to
3 user registry handles leaked from \Registry\User\S-1-5-21-1049297961-3057247634-349289542-1004_Classes:
Process 2428 (\Device\HarddiskVolume1\myprocess.exe) has opened key \REGISTRY\USER\S-1-5-21-1123456789-3057247634-349289542-1004
If a service or background service uses a user specific hive because it runs under a specific user identity and the relevant user account logs out.
原因
发生此行为的原因是 Windows 会自动关闭应用程序打开的用户配置文件的任何注册表句柄。 Windows 尝试关闭用户配置文件时,会执行此操作。
注释
事件 ID 1530 记录为警告事件。 事件详细信息中列出的应用程序将打开注册表句柄,应进行调查。
状态
此行为是设计造成的。