The error is probably in...

Code:

$secDescriptor.DiscretionaryAcl = $dACL



...and may not work with KiX. This line looks suspicious too...

Code:
$oComputer.Put("ntSecurityDescriptor", Array($secDescriptor))