I think this is my first post here. I've been using KiXtart for about 10 years. The person whom I worked under for 5 years used it religiously, and now I do as well on my own K-12 (Education) network. I love it.

Enough of that. I've hit a bit of a brick wall. I'm not sure if this question needs to be in basic scripting, advanced scripting, noobie scripting, No clue.

My AD has some custom attributes in it that are managed by my state department. I am trying to set a value of one of these attributes to "true" and I cannot get it to work.

Here's the code:
-----------------------
$ADCN = shell '$cmd dsquery user -samid $username'
$obj=getobject("LDAP://$ADCN")
$obj.ketsEduHidden = 'TRUE'
$obj.SetInfo
-----------------------

Basically, I'm wanting to set the output of the dsquery command as the variable $adcn.

Can someone please steer me in the right direction? Thanks again so much!