you can do this using ADSI as well.

code:

$user = "testuser"

$user = getobject("WinNT://@domain/$user")

if @error <> 0
exit(1)
endif

if $user.accountdisabled <> 1
$user.AccountDisabled = 1
$user.setinfo
endif


Bryce