Converting SID to Security Array

  • Thread starter Thread starter BenO
  • Start date Start date
B

BenO

To All,
I am trying to write a WMI Script to set some share
permissions. From the work so far I think I need to
convert a users SID into an Array.
From:
Trustee SID:
{1,5,0,0,0,0,0,5,21,0,0,0,97,101,186,148,115,207,62,65,108,
233,110,
212,0,2,0,0}

To:
Trustee.Properties_.Item("SID") = Array(1, 1, 0, 0, 0, 0,
0, 1, 0, 0, 0, 0)

Does anyone know how to do this?
Thanks in advance,
Ben
 
Back
Top