PsGetSid – Windows CMD Command
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119
Display the SID of a computer or a user.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
Syntax psgetsid [\\computer[,computer[,...] | @get_file] [-u user [-p passwd]]] [account|SID] Options: computer The remote computer on which to list files. Default = local system @get_file Get the SID of every computer listed in the text file specified. -p passwd Specify a password for user (optional). Passed as clear text. If omitted, you will be prompted to enter a hidden password. -u user Specify a username for login to remote computer(optional). account The user account to resolve to a user SID SID A User account System Identifier -accepteula Suppress the display of the license dialog. |
Specify a user name if the account you are running from doesn’t have administrative privileges on the computer you want to query.
When launched for the first time, PsGetSid will create the regkey
HKCU\Software\Sysinternals\PsGetSid\EulaAccepted=0x01
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Examples: Get the SID of \\workstationf4t: psgetsid \\workstationf4t Get the domain SID for the domain: Niamod psgetsid Niamod Get the SID for the currently logged-in user psgetsid %username% |