Hi everyone,
I'm pretty new to using the COM functionality in PHP.
I want to administer my PC using PHP together with ADSI.
My first problem is to enumerate the groups in my domain.
I tried using the following but it didn't work:
$objDomain = new COM("WinNT://mydomain") or die("Cannot find domain");
$objDomain->filter = array("group");
foreach($objDomain as $group){
echo $group->name."<br>\n";
}
echo "Done";
all i get is the "Done" from the last line.
How can I get a list of the groups ?
Thanks in advance