Okay, updated the code above a little. Here is sample output.


Code:
SID2Name: LOCAL SERVICE
Registry Account Name: LocalService
SID: S-1-5-19
SID (REG value): 010100000000000513000000