You must have the ActiveDirectory module available for import (usually done by installing RSAT). In reply to a question posed on the AD UDF thread. How to dump an array of users from AD with a partial Last Name: #include <AutoItConstants.au3>
#include <Array.au3>
$sName = inputbox("Get AD User Info" , "AD Lastname (or partial)")
$sName = "*" & $sName & "*"
$sCommands = "powershell -Command import-module ActiveDirectory; Get-ADUser -LDAPfilte
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