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 ?
_______________ _______________ _______________ _______________ ____
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...
------------------------------------------------------------------------------------------------------------------
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...
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...
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.
_______________ _______________ _______________ _______________ _____
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........
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
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.
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