1、vmi工具安装,使用ie打开(如图)or C:\Documents and Settings\Administrator\桌面\VBS>wbemtest.exe:VMI-TOOS/VBS编程

2、跟进工具查看的对象及其属性编写代码测试:

setcomputer = "."

set wbemservices = getobject("winmgmts:\\" & strcomputer)

set wbemobjectset = wbemservices.instancesof("win32_process")

for each wbemobject in wbemobjectset

'createobject("scripting.filesystemobject").createtextfile("1.txt",true).write  wbemobject.name

 wscript.echo "P_NAME:" & wbemobject.name &"---------------"& "P_PID:" & wbemobject.handle &"---------------"& wbemobject.ThreadCount

 'wscript.echo "process-handle:" & wbemobject.handle

 'wscript.echo "process-installdate:" & wbemobject.installdate

 'wsh.echo "process-name:" & wbemobject.name 

next


3、运行是在cmd中运行:


VMI-TOOS/VBS编程



转载于:https://blog.51cto.com/shouhouzhe/1376781

相关文章:

  • 2021-12-19
  • 2022-12-23
  • 2021-12-19
  • 2022-12-23
  • 2021-11-10
  • 2021-11-05
  • 2021-05-30
  • 2021-06-13
猜你喜欢
  • 2022-12-23
  • 2021-10-13
  • 2021-06-16
  • 2021-12-15
  • 2022-12-23
  • 2022-01-23
  • 2022-12-23
相关资源
相似解决方案