This is one way but there are many others...

How many computers are we talking about?

 Code:
Function enumComps() 

$objADsPath = GetObject("LDAP://CN=,DC=,DC=) 

For Each $obj in $objADsPath.Members 
	If $obj.Class = "computer"
		; add each computer to a string
		$strComputers = $strComputers + $obj.name + ";"
	Endif 
Next 

If Len($strComputers)>0
	; take the last ; off the string
	$strComputers = Substr($strComputers,1,Len($strComputers)-1)
	
	; split the string into an array and return it
 	$enumComps = Split($strComputers,";")
EndIf

EndFunction 
_________________________
The Code is out there