Do Until objRecordSet.EOF WScript.Echo objRecordset.Fields("lDAPDisplayName") If objRecordset.Fields("isMemberOfPartialAttributeSet")Then WScript.Echo "In the global catalog." Else WScript.Echo "Not in the global catlog." End If
If IS_INDEXED AND objRecordset.Fields("searchFlags") Then WScript.Echo "Is indexed." Else WScript.Echo "Is not indexed." End If Wscript.Echo VbCrLf objRecordSet.MoveNext Loop