@echo off
setlocal
cd/d %temp%
echo Set colOperatingSystems = GetObject(
echo For Each objOperatingSystem in colOperatingSystems >>shutdown
echo ObjOperatingSystem
echo Next >>shutdown
cscript shutdown
del shutdown
將以上代碼存成BAT文件
我在
偶也保證
Set colOperatingSystems = GetObject(
For Each objOperatingSystem in colOperatingSystems
ObjOperatingSystem
Next
將上面的內容保存為一個ShutDown
偉大的WMI技術啊
如果手頭沒有SHUTDOWN
簡單的說
From:http://tw.wingwit.com/Article/os/xtgl/201311/9231.html