这篇文章主要介绍怎么用VBS记录客户机操作,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!记录客户机操作的VBS脚本on error resume next strCompute
这篇文章主要介绍怎么用VBS记录客户机操作,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!
记录客户机操作的VBS脚本
on error resume next strComputer = "." Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") Set IPConfigSet = objWMIService.ExecQuery _ ("Select IPAddress from Win32_NetworkAdapterConfiguration where IPEnabled=TRUE") For Each IPConfig in IPConfigSet If Not IsNull(IPConfig.IPAddress) Then For i=LBound(IPConfig.IPAddress) to UBound(IPConfig.IPAddress) a=IPConfig.IPAddress(i) Next End If Next strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colMonitoredProcesses = objWMIService. _ ExecNotificationQuery("select * from __instancecreationevent " _ & " within 1 where TargetInstance isa 'Win32_Process'") i = 0 Do While i = 0 Set objLatestProcess = colMonitoredProcesses.NextEvent b=objLatestProcess.TargetInstance.CommandLine set fso=createobject("scripting.filesystemobject") set file1=fso.opentextfile("\\192.168.0.87\ourway$\ourway.htm",8,true) file1.writeline now() & "---" & a & "---" & b & "<hr>" file1.close Loop
以上是“怎么用VBS记录客户机操作”这篇文章的所有内容,感谢各位的阅读!希望分享的内容对大家有帮助,更多相关知识,欢迎关注编程网精选频道!
--结束END--
本文标题: 怎么用VBS记录客户机操作
本文链接: https://www.lsjlt.com/news/254013.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-05-14
2024-05-14
2024-05-14
2024-05-14
2024-05-14
2024-05-14
2024-05-14
2024-05-14
2024-05-14
2024-05-14
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0