熱點推薦:
您现在的位置: 電腦知識網 >> 網絡技術 >> 正文

使用Windows Script 枚舉運行中進程

2022-06-13   來源: 網絡技術 

  <job >
  <script language=VBScript>
  logip=       //計算機名(IP)
  user=                    //用戶名
  password=                //密碼
  namespace=root\cimv       //WMI名稱空間
  
  wScriptEcho STRAT
  
  set wmiLocator = CreateObject (WbemScriptingSWbemLocator)  
  set objwmi = wmiLocatorConnectServer (logip namespace user password)
  
  set col =objwmiexecquery (select * from Win_Process)
  
  for each colin in col
  wScriptEcho colinname
  
  next
  wScriptEcho END
  </script>
  </job>
From:http://tw.wingwit.com/Article/Network/201311/29959.html
    推薦文章
    Copyright © 2005-2022 電腦知識網 Computer Knowledge   All rights reserved.