如何以编程方式清除事件日志? [英] How do I programmatically clear the event log?

查看:88
本文介绍了如何以编程方式清除事件日志?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我的要求如下。

每当我更改系统日期/时间时,都会创建新条目在事件日志中。

Whenever i change the system date/time, it is creating new entry in event log.

现在我想按事件ID删除该特定事件。那么我如何实际实现呢?

Now i want to delete that particular event by event id. So how do i pragmatically achieve that?

我对我的要求有两个不同的问题

I have two different questions on my requirement


1。我可以  restrict  当我更改系统日期/时间时,条目
到事件查看器?

1. Can i can restrict the entry to Event viewer when i change the system date/time ?


2。   我手动删除该事件日志后,
也是在事件日志中为其生成相同的事件。 
此条目还需要要从事件查看器中删除。所以  当我删除这样的条目时,
i可以限制条目到事件查看器事件查看器?

推荐答案


感谢您联系协议论坛。  在审核中,这是其他论坛的问题。  协议论坛是针对开放规范程序的文档支持团队而非咨询支持。

Thank you for contacting the protocols forums.  In reviewing, this is a question for other forums.  The protocols forum is for the documentation support team on the open specifications program not advisory support.




但是,我们确实有其他论坛可以针对Windows SDK支持指导此问题。  此问题适合Windows SDK论坛:

However, we do have other forums that this question could be directed for Windows SDK support.  This question fits the Windows SDK forums:


    https://social.msdn.microsoft.com/Forums/en-US/home?forum=windowssdk

    https://social.msdn.microsoft.com/Forums/en-US/home?forum=windowssdk



这可以在那里发布,供社区评论并提供任何评论。

This can be posted there for community to review and offer any commentary.





谢谢你,


Nathan Manis

Nathan Manis


Microsoft协议文档支持团队

Microsoft Protocols Documentation Support Team


这篇关于如何以编程方式清除事件日志?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆