If you know the person’s username, use this command instead: wmic useraccount where name=“USER” get sid (but replace USER with the username). [1] X Research source