瀏覽單個文章
951
Senior Member
 
951的大頭照
 

加入日期: May 2003
文章: 1,179
回覆: 區域網路 啟動 關閉 電腦

引用:
Originally posted by Chief_WU
請問有沒有辦法啟動或是關閉區域網路中的特定電腦
ex
my ip is 192.168.0.100
i wanna shutdown this workstation 192.168.0.143


喚醒用AMD的網路開機程式,前提須支援網路開機
關閉可用script ,用法請參照http://forum.pcdvd.com.tw/showthrea...threadid=223002

下面為script的語法把他貼在文字檔上面附檔名改成vbs執行即可

strComputer = "另一台電腦名稱"
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate,(Shutdown)}!\\" & strComputer & "\root\cimv2")
Set colOperatingSystems = objWMIService.ExecQuery _
("Select * from Win32_OperatingSystem")
For Each objOperatingSystem in colOperatingSystems
ObjOperatingSystem.Shutdown()
Next
 
__________________
我是誰
舊 2003-07-10, 05:07 AM #2
回應時引用此文章
951離線中