日期:2009-06-21  浏览次数:20551 次

<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>