<job >
<script language="VBScript">
logip="localhost" '主机标识
user="administrator" '用户名
password="" '密码
namespace="root\cimv2" 'WMI名称空间
wScript.Echo "STRAT"
set wmiLocator = CreateObject ("WbemScripting.SWbemLocator")
set objwmi = wmiLocator.ConnectServer (logip, namespace, user, password)
set osSet=objwmi.InstancesOf ("Win32_OperatingSystem")
for each os in osSet
os.Shutdown
next
wScript.Echo "END"
</script>
</job>
本文地址:http://com.8s8s.com/it/it26569.htm