Questions tagged [sid]

In the context of the Microsoft Windows NT line of operating systems, a SID (Security IDentifier) is a unique, immutable identifier of a user, user group, or other security principal.

Windows grants or denies access and privileges to resources based on access control lists (ACLs), which use SIDs to uniquely identify users and their group memberships.

When a user logs into a computer, an access token is generated that contains user and group SIDs and user privilege level. When a user requests access to a resource, the access token is checked against the ACL to permit or deny particular action on a particular object.

SIDs are useful for troubleshooting issues with security audits, Windows server and domain migrations.

221 questions
0
votes
1 answer

How to get UPN (User Principal Name) frof the current logged in user?

In the context of my earlier question, I am trying to get UPN of the current logged in Windows Active directoy user in C++. I know how to get the SID of logged in user but unable to get the UPN of the logged in user.
aJ.
  • 34,624
  • 22
  • 86
  • 128
0
votes
1 answer

Powershell Script for AD Users SID

I currently use this script to obtain the SID of a user from AD. Not that each time I need an SID, I have to open the script and type the persons username in, which when I have 100's to do can be frustrating. The current script is as follows: …
0
votes
1 answer

User SID copy/paste using command line?

Can user SID be copied from registry (or whatever) and pasted to a txt file using command line only (Windows 7)?
user2951825
0
votes
3 answers

What is the difference? Oracle TNS SID Listener

In human language: What is the difference between: TNS, SID and a Listener? Thanks!
Dimitri Dewaele
  • 10,311
  • 21
  • 80
  • 127
0
votes
2 answers

Getting user name failed from the SID in c++?

When I have tried to get the username using below code, I have successfully get the user name: hres = pSvc->GetObject(L"Win32_SID.SID='S-1-5-82-1036420768-1044797643-1061213386-2937092688-4282445334'", 0, NULL, &pclsObj, NULL); But when assign the…
user2499879
  • 673
  • 3
  • 10
  • 16
0
votes
0 answers

What Service Needs to be on to translate UserSID

I have a script which accepts following input "sender-ip=10.10.10.10" It is supposed to return the last user logged on. First, it will attempt to detect Operating System Second, it will attempt to detect User Profile Finally, it will attempt to…
Glowie
  • 2,271
  • 21
  • 60
  • 104
0
votes
1 answer

SQL Server Agent job step - changing the name of the "run as" account

If I change the name of the AD user account that is setup as the "Run as" account for the step of an SQL Server Agent job, do I need to update the "Run as" property of the step? Or will it still work using the SID of the account?
Phaedrus
  • 793
  • 1
  • 10
  • 17
0
votes
1 answer

Black screen after changing SID in Windows 2008 R2

I am using this guide and similair ones to change SID in Windows 2008 R2 running under VirtualBox. Unfortunately, after reboot I see only black screen saying "Setup is updating registry settings" and then system hangs with black screen and white…
0
votes
1 answer

WinAPI LookupAccountSid from an .evt file

I'm trying to get the user account name of a user SID get from an .evt file (Event Log). Until now I have successfully read the file and I have access to the SID of the active user at the time the event was logged. To get a user name from this…
Bastien
  • 994
  • 11
  • 25
0
votes
2 answers

Can I have oracle database service name without SID?

In general, Oracle Database SID included in Service name. For Ex: SID: orcl & Service Name: orcl.mycomp.com So, It is possible to define the service name without including SID Ex: mydb.mycomp.com for database SID is orcl.
Suresh Babu K
  • 18
  • 1
  • 3
0
votes
1 answer

How to copy SID for storage with C++

Say, if I get a user's SID with the following API: TOKEN_USER* pTU = (TOKEN_USER*)pbytes; DWORD dwSize; GetTokenInformation(hToken, TokenUser, pTU, dwSize, &dwSize); pTU->User.Sid; //Contains the SID I need I need to store this SID for later…
ahmd0
  • 16,633
  • 33
  • 137
  • 233
0
votes
1 answer

orphaned users after restore to new machine not on domain; understanding KB918992

Seeking clarification/confirmation: if I understand correctly, the following considerations about "orphaned users" apply only to those users that are associated with a Windows network security principal; a user associated with a "pure" SQL Server…
Tim
  • 8,669
  • 31
  • 105
  • 183
0
votes
1 answer

How do i get the SID-History value using c# from active directory

I have a problem i've been struggling with. I am trying to get the sidhistory property from an AD searchresult. Is there anyone that can shed some light, or point me in the right direction on how to get the sidhistory property value? This is an…
Roachmans
  • 41
  • 1
  • 7
0
votes
1 answer

Writing From HKEY_USERS

I am attempting to create an application that will allow me to input a username and switch that user's default printer by modifying the registry under HKEY_USERS\UserSID. I cannot seem write values to that section of the registry though. Perhaps…
0
votes
1 answer

Get Caption of SID from RSOP_Session SecurityGroups

From the WMI namespace root\rsop\user\ I can fetch an array of SecurityGroups using the WQL Select SecurityGroups from RSOP_Session. I end up with a list of SIDs similar to the…
pepoluan
  • 6,132
  • 4
  • 46
  • 76
1 2 3
14
15