Originally Posted By: ack2000

 Code:
$result as $DirectoryServices.SearchResult = $searcher.FindOne()
If Not IsNothing($result) Then
I don't think KiX knows what to do with "AS".
Do you have a UDF called IsNothing()?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.