The code was originally as below. There is no reference to the computer object.accountdisabled. I have now added Case $object.Class = "computer" And $object.AccountDisabled $Icon = $cx (with the icon grabbed from AD) and it now works. Thanks for your help guys.

Ps. Still could not get the script to work and I am using the latest version of Kixforms. Thanks anyway.

Code:
 
Select
Case $object.Class = "organizationalUnit" $Icon = $o
Case $object.Class = "user" And $object.AccountDisabled $Icon = $ux
Case $object.Class = "user" And $object.IsAccountLocked $Icon = $ul
Case $object.Class = "user" $Icon = $u
Case $object.Class = "group" $Icon = $g
Case $object.Class = "computer" $Icon = $c
Case 1 $Icon = 45
EndSelect