Log the last boot time for all Computers listed in AD.  Should probably be executed with DA rights if you hope to run the WMI query on all computers. #include <AutoItConstants.au3> #include <Array.au3> #include <File.au3> $sCommands = 'powershell -Command import-module ActiveDirectory; "Get-ADComputer -Filter * | Select -Expand Name"' $iPID = Run(@ComSpec & " /c " & $sCommands, "", @SW_SHOW , $stdout_child) $sOutput = "" While 1 $sOutput &= StdoutRead