Ja ist schon klar

So richtig komme ich nicht weiter. So sieht man script momentan aus:
Const ADS_SCOPE_SUBTREE = 2
Set fso=CreateObject("Scripting.FileSystemObject")
Set tf=fso.OpenTextFile("SSOWatch.txt",2,1)
Set objConnection = CreateObject("ADODB.Connection")
Set objCommand = CreateObject("ADODB.Command")
objConnection.Provider = "ADsDSOObject"
objConnection.Open "Active Directory Provider"
'############################################################
'SSOSoftware-Abfrage 4.54 Build 2678
'############################################################
Set objCommand.ActiveConnection = objConnection
objCommand.CommandText = _
"Select distinguishedName from " & _
"'LDAP://DC=test,DC=de' where objectClass='enatelSoftwareModule'" & _
" and enatelSoftwareModuleVersion = '72623751'"
objCommand.Properties("Page Size") = 1000
objCommand.Properties("Searchscope") = ADS_SCOPE_SUBTREE
Set objRecordSet = objCommand.Execute
objRecordSet.MoveFirst
Do Until objRecordSet.EOF
tf.Writeline objRecordSet.Fields("distinguishedName").Value
objRecordSet.MoveNext
Loop