OK last thing. I have it all tied in with my normal script to achieve what I want to achieve. Which variable would I use for this?

I have something like this for example:

$pcname = @wksta
$username = @userid
$department = $?????

Based on the ADquery script it seems that the results would be this $aResults or no? or could I do something like this $fnLDAPQuery.

And then at the insert:

$rs.fields.item("Department").value = $department
Is this as easy as it is?


Edited by DJ Ballistic (2005-06-16 01:08 AM)