Maarten,
Adsysteminfo is one of the AD provider.
So as the script worked perfectly, seems that the ldap syntax has a mistake.

What this one does ?
$Computer=getobject("LDAP://CN=WCWS321,CN=Computers,DC=mvdw,DC=nl")
? " computer error "+ @error + " "+@serror
? Computer name " + $Computer.Name

If you get nothing good, get a look here, do a copy/paste of the udf, and call it with this one in the same script :

For each $Line in ADSearch(,"WCWS321*")
? ""+$line
next
exit

Beware, as the correct LDAP path don't include the informations after the first "|"

[ 02 February 2002: Message edited by: Alex.H ]

_________________________
? getobject(Kixtart.org.Signature)