CSDN博客

img 00x0

Script:WINDOWS Script 枚举运行中进程

发表于2004/10/14 21:30:00  645人阅读

<job >
<script language="VBScript">

logip="202.204.48.112"              //计算机名(IP)
user=""                                        //用户名
password=""                               //密码
namespace="root/cimv2"             //WMI名称空间


wScript.Echo "STRAT"

set wmiLocator = CreateObject ("WbemScripting.SWbemLocator")   
set objwmi = wmiLocator.ConnectServer (logip, namespace, user, password)

 


set col =objwmi.execquery ("select * from Win32_Process")

for each colin in col
wScript.Echo colin.name

next
wScript.Echo "END"
</script>
</job>

0 0

相关博文

我的热门文章

img
取 消
img