Quote:

$objUser.Put "sAMAccountName", $user




Is VBS syntax. The original code is correct for KiXtart.
_________________________
Home page: http://www.kixhelp.com/hb/