国产探花免费观看_亚洲丰满少妇自慰呻吟_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 
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 防城港市| 吉林市| 芜湖市| 道真| 霍城县| 乐都县| 绵竹市| 泊头市| 南开区| 彭州市| 泾源县| 漯河市| 乌审旗| 平舆县| 梅河口市| 林甸县| 宝鸡市| 武安市| 淄博市| 香港 | 阿荣旗| 临城县| 祁东县| 华阴市| 新龙县| 张家界市| 建水县| 嵩明县| 赤壁市| 化州市| 通化市| 阳东县| 建德市| 水城县| 溧水县| 莱西市| 淳化县| 宣恩县| 金湖县| 乐亭县| 团风县|