返回列表 发帖

[转贴] VBS脚本监视注册表启动项的增加和删除

Dim strComputer
strComputer="."
Set objWMIService=GetObject("winmgmts:\\" & strComputer &"\root\default")
Set colEvents=objWMIService.ExecNotificationQuery("Select * from RegistryKeyChangeEvent Where Hive='HKEY_LOCAL_MACHINE' and " & "KeyPath='SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run'")
Do
    Set objLatestEvent=colEvents.NextEvent
    MsgBox "在" & Now & "启动项被更改!",vbExclamation,"注册表防火墙"
LoopCOPY


http://hangzhou492.blog.51cto.com/67690/40609

返回列表