如何知道 Windows 用户帐户的 SID?

Pio*_*ost 4 windows windows-registry user-accounts

当您查看HKEY_USERS注册表项时,每个子项(代表每个用户的设置)看起来都类似于 S-1-5-18,SID我猜它被称为 S-1-5-18 。

我怎么知道哪个SID是哪个用户帐户?

Pio*_*ost 6

也可以使用PsGetSid


Nif*_*fle 5

如何将用户名与安全标识符 (SID) 相关联

Open Registry Editor and navigate to:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion \ProfileList

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.
Run Code Online (Sandbox Code Playgroud)