CSDN博客

img 00x0

Script: Windows关机

发表于2004/10/16 0:23:00  686人阅读

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

0 0

相关博文

我的热门文章

img
取 消
img