window user sid

 

 


查看 User 的 SID

 

方法1: wmic

wimic = Windows Management Instrumentation Command-line

cli:

wmic useraccount get name,sid

Name           SID
Administrator  S-1-5-21-209050289-2824987543-4103389380-500
Guest          S-1-5-21-209050289-2824987543-4103389380-501
tester         S-1-5-21-209050289-2824987543-4103389380-1008

方法2: regetry

HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList

入面每個 Key 都係 SID 來, Username 在 Key 內的  ProfileImagePath(String)

Creative Commons license icon Creative Commons license icon