Windows 事件紀錄已滿(VBS)

Windows 安全性紀錄已滿為例

使用最高權限,我的電腦右鍵>管理

事件檢視器,安全性

事件檢視器,安全性按右鍵【清除所有事件】之後問儲存檔案要選
安全性右鍵【內容】點選視需要覆寫事件套用確定。

此外還可以透過WMI撰寫相關自動化腳本刪除。

清除安全性紀錄VBS

strComputer = "."
 Set objWMIService = GetObject("winmgmts:" _
     & "{impersonationLevel=impersonate,(Backup)}!\\" & _
         strComputer & "\root\cimv2")
 Set colLogFiles = objWMIService.ExecQuery _
     ("Select * from Win32_NTEventLogFile " _
     & "Where LogFileName='System'")
 For Each objLogfile in colLogFiles
     objLogFile.ClearEventLog()
     WScript.Echo "Cleared System event log file"
 Next

清除Internet Explorer紀錄VBS

strComputer = "."
 Set objWMIService = GetObject("winmgmts:" _
     & "{impersonationLevel=impersonate,(Backup)}!\\" & _
         strComputer & "\root\cimv2")
 Set colLogFiles = objWMIService.ExecQuery _
     ("Select * from Win32_NTEventLogFile " _
     & "Where LogFileName='Internet Explorer'")
 For Each objLogfile in colLogFiles
     objLogFile.ClearEventLog()
     WScript.Echo "Cleared Internet Explorer event log file"
 Next

清除應用程式VBS

strComputer = "."
 Set objWMIService = GetObject("winmgmts:" _
     & "{impersonationLevel=impersonate,(Backup)}!\\" & _
         strComputer & "\root\cimv2")
 Set colLogFiles = objWMIService.ExecQuery _
     ("Select * from Win32_NTEventLogFile " _
     & "Where LogFileName='Application'")
 For Each objLogfile in colLogFiles
     objLogFile.ClearEventLog()
     WScript.Echo "Cleared application event log file"
 Next

清除系統紀錄VBS

strComputer = "."
 Set objWMIService = GetObject("winmgmts:" _
     & "{impersonationLevel=impersonate,(Backup)}!\\" & _
         strComputer & "\root\cimv2")
 Set colLogFiles = objWMIService.ExecQuery _
     ("Select * from Win32_NTEventLogFile " _
     & "Where LogFileName='System'")
 For Each objLogfile in colLogFiles
     objLogFile.ClearEventLog()
     WScript.Echo "Cleared System event log file"
 Next

177 comments

  1. Magnificent beat ! I wish to apprentice even as you amend
    your website, how can i subscribe for a blog site?
    The account helped me a appropriate deal. I had been a little bit acquainted of this your broadcast provided vibrant transparent concept

  2. I seriously love your website.. Pleasant colors & theme.
    Did you develop this amazing site yourself?
    Please reply back as I’m planning to create my own site and would
    like to find out where you got this from or exactly what the theme is named.
    Cheers!

  3. I’ve been surfing online more than 2 hours today, yet
    I never found any interesting article like yours.

    It’s pretty worth enough for me. In my opinion, if all site owners and bloggers made
    good content as you did, the net will be much
    more useful than ever before.

  4. It’s a pity you don’t have a donate button! I’d certainly donate to this excellent blog!
    I suppose for now i’ll settle for book-marking and adding your RSS feed to
    my Google account. I look forward to fresh updates and will talk about
    this site with my Facebook group. Talk soon!

  5. Please let me know if you’re looking for a writer for your site.
    You have some really good articles and I feel I would be a good
    asset. If you ever want to take some of the load off, I’d absolutely love to write some articles for your blog in exchange for a link back to mine.
    Please blast me an email if interested. Thank you!

  6. Nice blog here! Also your website rather a lot up very fast!
    What host are you using? Can I am getting your affiliate link for your host?
    I wish my site loaded up as quickly as yours lol

  7. Great blog! Do you have any helpful hints for aspiring writers?
    I’m planning to start my own blog soon but I’m a little lost on everything.
    Would you propose starting with a free platform like WordPress or go for a paid option? There are so many choices out there that I’m totally confused ..
    Any recommendations? Thanks a lot!

  8. We’re a group of volunteers and opening a new scheme in our community.
    Your site provided us with valuable info to work on. You have done
    an impressive job and our whole community will be thankful to
    you.

  9. I seriously love your blog.. Great colors & theme.
    Did you build this web site yourself? Please reply back
    as I’m looking to create my own personal website and would love to learn where you got this from or
    exactly what the theme is named. Thanks!

  10. Hi there, I discovered your blog via Google while searching for a
    similar topic, your website got here up, it appears
    to be like good. I have bookmarked it in my google bookmarks.

    Hi there, simply changed into alert to your weblog thru Google,
    and located that it’s truly informative. I’m going to watch out for brussels.

    I will be grateful should you proceed this in future.
    Lots of other people might be benefited from your writing.
    Cheers!

  11. When I initially commented I appear to have clicked on the -Notify me when new
    comments are added- checkbox and from now on whenever a comment is added I receive four emails with
    the exact same comment. There has to be a way you are able to remove me from that service?

    Thanks a lot!

  12. It is perfect time to make some plans for the future and it is time to
    be happy. I have read this post and if I could I wish to suggest you
    some interesting things or tips. Perhaps you can write next articles referring
    to this article. I wish to read more things about
    it!

發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *

*