I am logged into a Windows XP pro sp2 system with a domain account that has admin permissions on the domain as well as the machine. I am attempting to add change permissions to an existing directory, and I keep getting the following error:

@error = -2147352567
@serror= com exception error "SetSecurityDescriptor" ((null) - (null)) [- 2147352567/80020009]

here's my code:

 Code:
$SO=SetOption('wrapateol','on')

$curuser='MyDomain\billy'
$IBM = 'c:\program files\E!PC\'


$rc=ntfsperms('ADD:Change',$ibm,$curuser)

?@ERROR
?@SERROR

 


Thanks for your help!