I have a quick but relatively complex question
Environment - Native Mode, Win 2000 Active Directory.
I am looking for a method to convert an active directory HEX value of a User's SID into is Decimal value
For example a user account value in the registry can be displayed as S-1-5-21-1390067357-484763869-1801674531-3404 as it's Decimal value or 15 15 52 da be 9d 1c e4 e8 dd 6b 63 5f 23 d4 c as it's HEX Value.
What I would like to achieve is a way to convert between the 2, using script. That way I can setup a scrip to 1st Poll a resource to gain the HEX value of a SID and then resolve that to the DEC value so that I can compare it against another Resource.
If there is any function in either VBScript, WMI, WSH or ADSI that would be beneficial.