Hmm... just discovered Redim Preserve in the manual - terrible habit of mine, leaving the manual as a last resort - and I haven't looked at it for a while now...

So I redimension the $share array before I add another element to it and the routine seems to work OK. Now I want to turn this routine into a function, something like SharePerms($computer) which would return this array of arrays.

Can I then iterate through this larger array like this?

code:
For Each $Share In $SharePerms
For Each $element In $Share
? $element
Next
?
Next

_________________________
================================================
Breaker