SID Stuff

Find a user based on the SID

wmic useraccount get name,sid

Get a SID from a username

wmic useraccount where name="USER" get sid