I could be wrong (I'm not at work on an AD to test it right now), but this line does not look like it would function correctly.

quote:
$strHTML = $strHTML + '$$strSearchName = "EzAd' + UCase(Left($classesPulldown.Text,1)) + substr($classesPulldown.Text,2,len($classesPulldown.Text)) + '"' + @crlf
It appears as though it will take the computer name and class and put it into a single variable. Thus an LDAP call would fail as you are attempting to add invalid data to the var.

i.e. EzAd would be added to Computer class as one example.

Thus "EzAdComputer" would not return valid data.

Maybe I'm looking at it wrong though. If I am correct then why not use @WKSTA

I'll try to test it out at work though to make sure.