How to find SID of users

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nethajireddy
    New Member
    • Feb 2007
    • 83

    How to find SID of users

    Hi,
    I want to find users using SID, how it is possible, can anyone help me out, please waiting for ur reply...
  • AmberJain
    Recognized Expert Contributor
    • Jan 2008
    • 922

    #2
    Originally posted by nethajireddy
    Hi,
    I want to find users using SID, how it is possible, can anyone help me out, please waiting for ur reply...
    _______________ _______________ _______________ _______________ ____
    What do you mean by SID ?
    _______________ _______________ _______________ _______________ ____

    Comment

    • Nepomuk
      Recognized Expert Specialist
      • Aug 2007
      • 3111

      #3
      Originally posted by ambrnewlearner
      What do you mean by SID ?


      Originally posted by nethajireddy
      Hi,
      I want to find users using SID, how it is possible, can anyone help me out, please waiting for ur reply...
      Ask the source: http://support.microsoft.com/kb/154599/EN-US/

      Greetings,
      Nepomuk

      Comment

      • AmberJain
        Recognized Expert Contributor
        • Jan 2008
        • 922

        #4
        Originally posted by nepomuk


        THANKS......
        ambrnewlearner

        Comment

        • AmberJain
          Recognized Expert Contributor
          • Jan 2008
          • 922

          #5
          Originally posted by nethajireddy
          Hi,
          I want to find users using SID, how it is possible, can anyone help me out, please waiting for ur reply...
          ------------------------------------------------------------------------------------------------------------------
          To find SID of users, open registry editor and click HKEY_USERS in left pane to expand it. There in left pane itself you will find the SID of users.

          This link might be useful to you------------->
          http://www.mkssoftware .com/docs/man1/sid.1.asp
          _______________ _______________ _______________ _______________ _____
          If this is what you are lookin for, tell me...


          HOPE THIS HELPED......... ............... ......

          Comment

          • nethajireddy
            New Member
            • Feb 2007
            • 83

            #6
            Originally posted by ambrnewlearner
            ------------------------------------------------------------------------------------------------------------------
            To find SID of users, open registry editor and click HKEY_USERS in left pane to expand it. There in left pane itself you will find the SID of users.

            This link might be useful to you------------->
            http://www.mkssoftware .com/docs/man1/sid.1.asp
            _______________ _______________ _______________ _______________ _____
            If this is what you are lookin for, tell me...


            HOPE THIS HELPED......... ............... ......

            Thanks for your reply, first of all I want to know which security ID belongs to which user.. yes as u said in HK _users the IDs like "S-1-5-21-484763869-1993962763-1343024091-1003" are there. Exactly I want to know which user's ID is this....thank you once again...

            Comment

            • AmberJain
              Recognized Expert Contributor
              • Jan 2008
              • 922

              #7
              Originally posted by nethajireddy
              Thanks for your reply, first of all I want to know which security ID belongs to which user.. yes as u said in HK _users the IDs like "S-1-5-21-484763869-1993962763-1343024091-1003" are there. Exactly I want to know which user's ID is this....thank you once again...
              This link might help you------>

              LINK

              _______________ _______________ _______________ _______________ _____
              HOPE THIS HELPS.......... ....

              Comment

              • AmberJain
                Recognized Expert Contributor
                • Jan 2008
                • 922

                #8
                If you don't wanna use third party software, here is an another method----->

                Open regedit and goto:
                HKEY_LOCAL_MACH INE\SOFTWARE\Mi crosoft\Windows NT\CurrentVersi on\ProfileList

                Click on any of key on the left [SID] and check out the right pane for ProfileImagePat h. Now you should find something as following there:

                %SystemDrive%\D ocuments and Settings\madman

                Now "madman" (as in above line) is the name of the account associated with the SID you selected in the left pane.
                _______________ _______________ _______________ _______________ _____

                Comment

                • AmberJain
                  Recognized Expert Contributor
                  • Jan 2008
                  • 922

                  #9
                  Another way to do the same is using scripting (If you do not know scripting, do tell me)

                  We use a script similar to this, which returns the SID for the user aaa with an account in the bbb domain:
                  _______________ _______________ _______________ _______________ _____
                  strComputer = "."
                  Set objWMIService = GetObject("winm gmts:\\" & strComputer & "\root\cimv 2")

                  Set objAccount = objWMIService.G et _
                  ("Win32_UserAcc ount.Name='aaa' ,Domain='bbb'")
                  Wscript.Echo objAccount.SID
                  _______________ _______________ _______________ _______________ _____

                  Incidentally, this works just as well for local user accounts. The only difference is that you don’t specify a domain name for the Domain parameter; instead, you specify the name of the local computer. For example, this script returns the SID for the local user account aaa on the computer atl-ws-01:
                  _______________ _______________ _______________ _______________ _____
                  strComputer = "."
                  Set objWMIService = GetObject("winm gmts:\\" & strComputer & "\root\cimv 2")

                  Set objAccount = objWMIService.G et _
                  ("Win32_UserAcc ount.Name='aaa' ,Domain='atl-ws-01'")
                  Wscript.Echo objAccount.SID
                  _______________ _______________ _______________ _______________ _____

                  Of course, it’s possible that you might need to go the other direction; that is, you might have a SID and need to know which account that SID belongs to.
                  _______________ _______________ _______________ _______________ _____
                  strComputer = "."
                  Set objWMIService = GetObject("winm gmts:\\" & strComputer & "\root\cimv 2")

                  Set objAccount = objWMIService.G et _
                  ("Win32_SID.SID ='S-1-5-21-1454471165-1004336348-1606980848-5555'")
                  Wscript.Echo objAccount.Acco untName
                  Wscript.Echo objAccount.Refe rencedDomainNam e
                  _______________ _______________ _______________ _______________ _____
                  HOPE THIS HELPS........

                  Comment

                  • boitemogelo
                    New Member
                    • Dec 2011
                    • 1

                    #10
                    You can use Registry Editor
                    But read thise first

                    WARNING: Using Registry Editor incorrectly can cause serious, system-wide problems that may require you to reinstall Windows to correct them.Believ me,Even Microsoft cannot guarantee that any problems resulting from the use of Registry Editor can be solved "make a reasearch if you don't believe" So Use this tool at your own risk.

                    1.Open Registry Editor and navigate to:

                    HKEY_LOCAL_MACH INE\SOFTWARE\Mi crosoft\Windows NT\CurrentVersi on \ProfileList
                    2.Under the ProfileList key, you will see the SIDs. By selecting each one individually, you can look at the value entry and see what user name is associated with that particular SID.Make sure you don't change anything

                    Comment

                    • oreodoh
                      New Member
                      • Sep 2013
                      • 1

                      #11
                      This page worked well for me when trying to figure out how to do this on Windows 7. All commands are already built into the OS which is great for situations where 3rd party software is undesirable (or prohibited).

                      We can find SID of a user from windows command line using wmic or whoami command. This post explains how to use these commands to get SID(security id) of a local or domain user.


                      Basically I use WMIC to get the results I'm looking for. To get a list of all users on a W7 box and their SIDs, I run this command.

                      wmic useraccount get name,sid
                      Name SID
                      Administrator (SID will appear here)


                      Be advised this didn't work for me when using PowerShell. I had to use the trusty old Command Prompt (cmd.exe). Also be sure to run as Administrator to avoid getting privilege denial messages.

                      Comment

                      • Ankit Mehta
                        New Member
                        • Dec 2013
                        • 1

                        #12
                        Hi! If you want to use the command line to get your SID, this might be helpful to you :

                        Get SID of a local user :-
                        Go to the commandline and enter:
                        ------------------------------------------------------
                        wmic useraccount where name='username' get sid
                        ------------------------------------------------------

                        For example, to get the SID for a local user with the login name ‘Ankit’, the command would be as below
                        ------------------------------------------------------
                        wmic useraccount where name='Ankit' get sid
                        ------------------------------------------------------

                        If you do not know your username and you want to find it on the terminal itself then please enter the following:-
                        ------------------------------------------------------
                        wmic useraccount where name='%username %' get sid
                        ------------------------------------------------------

                        Comment

                        Working...