user2sid and sid2user

Two small utilities for Windows NT that allow you to query SAM and to find out a SID value for a given account name and vice versa.

User2sid is a command line interface to a WIN32 function LookupAccountName. Usage:

user2sid [\\computer_name] account_name

where computer_name is optional. By default, the search starts at a local Windows NT computer.

Sid2user is a command line interface to a WIN32 function LookupSidName. Usage:

sid2user [\\computer_name] authority subauthority1 ...

where computer_name is optional. By default, the search starts at a local Windows NT computer. For example,

sid2user 5 32 544

Download sid.zip (about 50 Kb).