Hi my friend.
In regards to SID, perhaps this command can help:
whoami /user /FO csv /NH > user.txt
From there you can interpret the data with winbuilder. This command works since Windows 2000 and above (according to this MSDN page).
Let me know if this works ok for what you want to achieve.
No.
http://ss64.com/nt/whoami.html
WHOAMI.exe (Windows 7/2008 or XP Resource kit)
The given page, anyhow:
http://technet.micro...c771299(v=ws.10).aspx
cites Windows 2000 server
WHOAMI.exe (Windows 7/2008 or XP Resource kit)
For XP the tool is also in the XP support tools:
http://www.microsoft...s.aspx?id=18546
WindowsXP-KB838079-SupportTools-ENU.exe
BUT that version DOES NOT have the /fo or /nh switches:
C:\appoggio>whoami /?
WHOAMI 2.0 @1997. Written by Christophe Robert(chrisrob@microsoft.com).
WHOAMI [/option] [/option] ...
Where /option is one of the following:
/ALL = Display all information in the current access token.
/NOVERBOSE = Display minimal information. *
/USER = Display user.
/GROUPS = Display groups.
/PRIV = Display privileges.
/LOGONID = Display Logon ID.
/SID = Display SIDs. *
/HELP = Display help.
* Must be used with option /USER, /GROUPS, /PRIV or/LOGONID
Samples are as follows:
WHOAMI
WHOAMI /ALL
WHOAMI /USER /SID
WHOAMI /GROUPS
WHOAMI /GROUPS /NOVERBOSE
WHOAMI /USER /GROUPS /SID
WHOAMI /PRIV /NOVERBOSE
WHOAMI /USER /GROUPS /PRIV
WHOAMI /HELP
Use a plainer instead:
whoami /USER /SID
Wonko