Hello,

If the built-in functions can also get the specified user's SID would be very convenient.

http://www.windows-commandline.com/get-sid-of-user/