How to quickly get SID (security identifier) of the currently logon user via
command line?
In windows 7 or Windows 8 its quite easy to get the SID of the currently logon user.
The command does not even require an elevated command prompt.
Just open a command prompt and type this command:
whoami /all
Sample output will be like this:
User Name SID
==================
============================================
my-pc\dusername007 S-1-5-81-8841277008-196834560-851378809-7010
The SID, the computer name and the user name will be displayed.
In a domain environment, to get the FQDN for the currently logon user type this command:
whoami /fqdn
Cheers..Just a quick tips.. Hope it helps..
Comments
Post a Comment