本帖最后由 menfan1 于 2012-3-11 11:41 编辑 $dtmConvertedDate = ObjCreate("WbemScripting.SWbemDateTime")
$strComputer = "."
$objWMIService = ObjGet("winmgmts:" & "{impersonationLevel=impersonate}!\" & $strComputer & "\root\cimv2")
$colOperatingSystems = $objWMIService.ExecQuery("Select * from Win32_OperatingSystem")
For $objOperatingSystem In $colOperatingSystems
$dtmConvertedDate.Value = $objOperatingSystem.InstallDate
$dtmInstallDate = $dtmConvertedDate.GetVarDate
MsgBox(1, "TEST", "Boot Device: " & $objOperatingSystem.BootDevice )
Next
错误信息:
$colOperatingSystems = $objWMIService.ExecQuery("Select * from Win32_OperatingSystem")
$colOperatingSystems = ^ ERROR
还是ACN_NET.au3的问题哈。。
注意:SVN:979已解决该WMI问题。 |