Hello Howard

I found a function written by a known person ...!
Its like this and it is just what I was looking for.

;FUNCTION StrSidToHexSid($StringSid);
;AUTHOR Howard A. Bullock (habullock@comcast.net)
;
;ACTION Converts a Sid in string (S-1-5-21-...) format to Hex format.
;
;SYNTAX StrSidToHexSid($StringSid)
;
;PARAMETERS $StringSid (Required) - String value
;
;REMARKS Do not prefix the computer name with "\\"'s.
;
;RETURNS String
;
;DEPENDENCIES KiXtart 4.02
;
;EXAMPLES StrSidToHexSid("S-1-5-21-24129212-1035812195-1543859470-1401")
; returns "010500000000000515000000BC2E7001633DBD3D0E6D055C79050000"
;

Now I will make all the code ready for launch. I will published the code here when I done.

/Mima