Sysinternals/Pstools/PsGetsid
Jump to navigation
Jump to search
You are here: | PsGetSid
|
Description
PsGetSid is part of the PsTools toolkit developed by Sysinternals. It translates SIDs to names and vice versa
Installation
PsGetSid is part of the PsTools suite. To install it, please refer to this section.
Usage
Syntax
Usage: psgetsid [\\computer[,computer2[,...] | @file] [-u Username [-p Password]]] [account | SID]
Options
- -u
- Specifies optional user name for login to remote computer.
- -p
- Specifies optional password for user name. If you omit this you will be prompted to enter a hidden password.
- account
- PsGetSid will report the SID for the specified user account rather than the computer.
- SID
- PsGetSid will report the account for the specified SID.
- computer
- Direct PsGetSid to perform the command on the remote computer or computers specified. If you omit the computer name PsGetSid runs the command on the local system, and if you specify a wildcard (\\*), PsGetSid runs the command on all computers in the current domain.
- @file
- PsGetSid will execute the command on each of the computers listed in the file.
Example
Remotely
C:\pstools>psgetsid \\192.168.1.27 -u pilou -p oopsoops PsGetSid v1.44 - Translates SIDs to names and vice versa Copyright (C) 1999-2008 Mark Russinovich Sysinternals - www.sysinternals.com SID for \\192.168.1.27: S-1-5-21-1801674531-1647877149-682003330
On the local machine directly
C:\pstools>psgetsid PsGetSid v1.44 - Translates SIDs to names and vice versa Copyright (C) 1999-2008 Mark Russinovich Sysinternals - www.sysinternals.com SID for \\OZ-C06A6A6F2D3C: S-1-5-21-1801674531-1647877149-682003330