Home XP Commands
XP Syntax

PsGetSid (part of PsTools - download PsGetSid)

Display the SID of a computer or a user.

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

Specify a user name if the account you are running from doesn't have administrative privileges on the computer you want to query.

Examples:


Get the SID of \\workstation64:

psgetsid \\workstation64

Get the domain SID for the domain: Niamod

psgetsid Niamod

Get the SID for the currently logged-in user

psgetsid %username%

Related Commands:

SYSTEMINFO - List system configuration



Back to the Top

Simon Sheppard
SS64.com