wmic useraccount get name,sid
wmic useraccount where name="<Username>" get sid
wmic useraccount where sid="<SID>" get name