473,511 Members | 15,852 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to find SID of users

83 New Member
Hi,
I want to find users using SID, how it is possible, can anyone help me out, please waiting for ur reply...
Jan 25 '08 #1
11 146007
AmberJain
884 Recognized Expert Contributor
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 ?
__________________________________________________ ______________
Feb 18 '08 #2
Nepomuk
3,112 Recognized Expert Specialist
What do you mean by SID ?
http://en.wikipedia.org/wiki/Security_Identifier

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
Feb 18 '08 #3
AmberJain
884 Recognized Expert Contributor
http://en.wikipedia.org/wiki/Security_Identifier


Ask the source: http://support.microsoft.com/kb/154599/EN-US/

Greetings,
Nepomuk


THANKS......
ambrnewlearner
Feb 18 '08 #4
AmberJain
884 Recognized Expert Contributor
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..............................
Feb 18 '08 #5
nethajireddy
83 New Member
------------------------------------------------------------------------------------------------------------------
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...
Mar 3 '08 #6
AmberJain
884 Recognized Expert Contributor
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..............
Mar 3 '08 #7
AmberJain
884 Recognized Expert Contributor
If you don't wanna use third party software, here is an another method----->

Open regedit and goto:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\Cu rrentVersion\ProfileList

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

%SystemDrive%\Documents 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.
__________________________________________________ _______________
Mar 5 '08 #8
AmberJain
884 Recognized Expert Contributor
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("winmgmts:\\" & strComputer & "\root\cimv2")

Set objAccount = objWMIService.Get _
("Win32_UserAccount.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("winmgmts:\\" & strComputer & "\root\cimv2")

Set objAccount = objWMIService.Get _
("Win32_UserAccount.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("winmgmts:\\" & strComputer & "\root\cimv2")

Set objAccount = objWMIService.Get _
("Win32_SID.SID='S-1-5-21-1454471165-1004336348-1606980848-5555'")
Wscript.Echo objAccount.AccountName
Wscript.Echo objAccount.ReferencedDomainName
__________________________________________________ _______________
HOPE THIS HELPS........
Mar 5 '08 #9
boitemogelo
1 New Member
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_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion \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
Dec 20 '11 #10
oreodoh
1 New Member
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).

http://www.windows-commandline.com/get-sid-of-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.
Sep 9 '13 #11
Ankit Mehta
1 New Member
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
------------------------------------------------------
Dec 11 '13 #12

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1305
by: CLEAR-RCIC | last post by:
Hi. I wrote the following code that returns the name of all users in our Active Directory. I want to only find users in a container named 'ABC'. Can anyone tell me how to do this? Dim...
0
1784
by: pmclinn | last post by:
How do you grab a users default gateway? Connection-specific DNS Suffix . : ksde.local IP Address. . . . . . . . . . . . : 10.117.161.108 Subnet Mask . . . . . . . . . . . : 255.255.248.0...
2
1361
by: Thomas LeBlanc | last post by:
What are the SQL commands to find who is logged on a server, what database he/she has open, etc? Where is this information in the help file or documentation? Thanks, Thomas ...
2
4293
by: Han de Monnink | last post by:
Hi, I am looking for a way to determine het user that is running a certain process, I can retrieve the process ID by calling the GetProcessByName("test") method which will return all processes...
3
2016
by: svjames | last post by:
heya guyzorz, just a quick q, for the life of me i cant find a way to obtain the value of a users browsers default homepage. Ive written a site that provides access to the internet on a certain...
2
1282
by: AR123 | last post by:
I want to find out a way of listing all the users who have access to specific item types created on Mediasurface. I need some help on developing this?
10
13050
by: CodeNoob | last post by:
please help been working on a project got it down to 5 errors from 100 now i have no idea what to do. Errors: init: deps-jar: Created dir: C:\Users\Tommy\Desktop\build\classes Compiling 306...
4
4034
by: Salad | last post by:
I have a situation where some, not all, users get the message "Couldn't find file "F:\AccessApps\AppName.mdw". This file is required for startup". My app the users are attempting to access is...
4
5102
by: LadiPrather | last post by:
These error say there is not symbols, I have changed them some many times till I am lost. Please someone help. JOptionPane.showMessageDialog(null,"Oringinal Balance = $" + recieveAmount + ...
0
7242
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7418
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7075
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7508
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5662
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4737
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3222
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3212
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1572
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.