peto dopo tanto penare ce l'ho fatta

Set objConnection = CreateObject("ADODB.Connection")
objConnection.Open "Provider=ADsDSOObject;"
Set objCommand = CreateObject("ADODB.Command")
objCommand.ActiveConnection = objConnection
objCommand.CommandText = _
"SELECT Name, distinguishedName FROM 'LDAP://dc=dominio,dc=poste' " _
& "WHERE objectCategory='computer' AND Name='babbaca*'"
Set objRecordSet = objCommand.Execute
While Not objRecordSet.EOF
Wscript.Echo objRecordSet.Fields("Name")
Wscript.Echo "[" & _
objRecordSet.Fields("distinguishedName") & "]"
objRecordSet.MoveNext
Wend
objConnection.Close
questo restituisce all'interno del dominio "dominio.poste" ogni oggetto di tipo computer il cui nome inizia per "babbaca"
quindi supponendo di averne un po', mi restituirà
babbacammelli1
babbacammelli2
babbacammelli10
ecc.
grazie peto ti voglio bene