how come:
Set sd = secobj.GetSecurityDescriptor(mailBox.ADsPath)

translates to:
$sd = $secobj.GetSecurityDescriptor($mailBox.$ADsPath)

I would quess:
$sd = $secobj.GetSecurityDescriptor($mailBox.ADsPath)

is closer, but...
without seeing what is ADsPath in initial code, can't make really good quesses [Wink]

[ 09. July 2003, 12:00: Message edited by: Lonkero ]
_________________________
!

download KiXnet