Microsoft.Win32.Security - enumerating Sids

4 minuut gelezen

I just spent some time to find a list that contained the Sid-strings for the well known Sids (WKS) that the Microsoft.Win32.Security-dll provides via the Sids-class. Because the WKS are implemented as static methods, it wasn't as easy to generate a list. To prevent me (or anybody else) spending more time on finding the list: 

<TABLE style="WIDTH: 297pt; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=395 border=0 x:str> <COL style="WIDTH: 164pt; mso-width-source: userset; mso-width-alt: 7972" width=218> <COL style="WIDTH: 133pt; mso-width-source: userset; mso-width-alt: 6473" width=177> <TR style="HEIGHT: 12.75pt" height=17> <TD style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; WIDTH: 164pt; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" width=218 height=17 x:str=" AccountOps "><FONT size=2><FONT color=#000000><FONT face=Arial> AccountOps </FONT></FONT></FONT></TD> <TD style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; WIDTH: 133pt; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent" width=177 x:str=" S-1-5-32-548 "><FONT size=2><FONT color=#000000><FONT face=Arial> S-1-5-32-548 </FONT></FONT></FONT></TD></TR> <TR style="HEIGHT: 12.75pt" height=17> <TD style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" height=17 x:str=" Admins "><FONT size=2><FONT color=#000000><FONT face=Arial> Admins </FONT></FONT></FONT></TD> <FONT size=2><FONT color=#000000><FONT face=Arial> S-1-5-32-544 </FONT></FONT></FONT></TR> <TR style="HEIGHT: 12.75pt" height=17> <TD style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" height=17 x:str=" AnonymousLogon "><FONT size=2><FONT color=#000000><FONT face=Arial> AnonymousLogon </FONT></FONT></FONT></TD> <FONT size=2><FONT color=#000000><FONT face=Arial> S-1-5-7 </FONT></FONT></FONT></TR> <TR style="HEIGHT: 12.75pt" height=17> <TD style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" height=17 x:str=" AuthenticatedUser "><FONT size=2><FONT color=#000000><FONT face=Arial> AuthenticatedUser </FONT></FONT></FONT></TD> <FONT size=2><FONT color=#000000><FONT face=Arial> S-1-5-11 </FONT></FONT></FONT></TR> <TR style="HEIGHT: 12.75pt" height=17> <TD style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" height=17 x:str=" BackupOps "><FONT size=2><FONT color=#000000><FONT face=Arial> BackupOps </FONT></FONT></FONT></TD> <FONT size=2><FONT color=#000000><FONT face=Arial> S-1-5-32-551 </FONT></FONT></FONT></TR> <TR style="HEIGHT: 12.75pt" height=17> <TD style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" height=17 x:str=" Batch "><FONT size=2><FONT color=#000000><FONT face=Arial> Batch </FONT></FONT></FONT></TD> <FONT size=2><FONT color=#000000><FONT face=Arial> S-1-5-3 </FONT></FONT></FONT></TR> <TR style="HEIGHT: 12.75pt" height=17> <TD style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" height=17 x:str=" CreatorGroup "><FONT size=2><FONT color=#000000><FONT face=Arial> CreatorGroup </FONT></FONT></FONT></TD> <FONT size=2><FONT color=#000000><FONT face=Arial> S-1-3-1 </FONT></FONT></FONT></TR> <TR style="HEIGHT: 12.75pt" height=17> <TD style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" height=17 x:str=" CreatorGroupServer "><FONT size=2><FONT color=#000000><FONT face=Arial> CreatorGroupServer </FONT></FONT></FONT></TD> <FONT size=2><FONT color=#000000><FONT face=Arial> S-1-3-3 </FONT></FONT></FONT></TR> <TR style="HEIGHT: 12.75pt" height=17> <TD style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" height=17 x:str=" CreatorOwner "><FONT size=2><FONT color=#000000><FONT face=Arial> CreatorOwner </FONT></FONT></FONT></TD> <FONT size=2><FONT color=#000000><FONT face=Arial> S-1-3-0 </FONT></FONT></FONT></TR> <TR style="HEIGHT: 12.75pt" height=17> <TD style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" height=17 x:str=" CreatorOwnerServer "><FONT size=2><FONT color=#000000><FONT face=Arial> CreatorOwnerServer </FONT></FONT></FONT></TD> <FONT size=2><FONT color=#000000><FONT face=Arial> S-1-3-2 </FONT></FONT></FONT></TR> <TR style="HEIGHT: 12.75pt" height=17> <TD style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" height=17 x:str=" Dialup "><FONT size=2><FONT color=#000000><FONT face=Arial> Dialup </FONT></FONT></FONT></TD> <FONT size=2><FONT color=#000000><FONT face=Arial> S-1-5-1 </FONT></FONT></FONT></TR> <TR style="HEIGHT: 12.75pt" height=17> <TD style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" height=17 x:str=" Guests "><FONT size=2><FONT color=#000000><FONT face=Arial> Guests </FONT></FONT></FONT></TD> <FONT size=2><FONT color=#000000><FONT face=Arial> S-1-5-32-546 </FONT></FONT></FONT></TR> <TR style="HEIGHT: 12.75pt" height=17> <TD style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" height=17 x:str=" Interactive "><FONT size=2><FONT color=#000000><FONT face=Arial> Interactive </FONT></FONT></FONT></TD> <FONT size=2><FONT color=#000000><FONT face=Arial> S-1-5-4 </FONT></FONT></FONT></TR> <TR style="HEIGHT: 12.75pt" height=17> <TD style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" height=17 x:str=" Local "><FONT size=2><FONT color=#000000><FONT face=Arial> Local </FONT></FONT></FONT></TD> <FONT size=2><FONT color=#000000><FONT face=Arial> S-1-2-0 </FONT></FONT></FONT></TR> <TR style="HEIGHT: 12.75pt" height=17> <TD style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" height=17 x:str=" Network "><FONT size=2><FONT color=#000000><FONT face=Arial> Network </FONT></FONT></FONT></TD> <FONT size=2><FONT color=#000000><FONT face=Arial> S-1-5-2 </FONT></FONT></FONT></TR> <TR style="HEIGHT: 12.75pt" height=17> <TD style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" height=17 x:str=" Null "><FONT size=2><FONT color=#000000><FONT face=Arial> Null </FONT></FONT></FONT></TD> <FONT size=2><FONT color=#000000><FONT face=Arial> S-1-0-0 </FONT></FONT></FONT></TR> <TR style="HEIGHT: 12.75pt" height=17> <TD style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" height=17 x:str=" PowerUsers "><FONT size=2><FONT color=#000000><FONT face=Arial> PowerUsers </FONT></FONT></FONT></TD> <FONT size=2><FONT color=#000000><FONT face=Arial> S-1-5-32-547 </FONT></FONT></FONT></TR> <TR style="HEIGHT: 12.75pt" height=17> <TD style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" height=17 x:str=" PreW2KAccess "><FONT size=2><FONT color=#000000><FONT face=Arial> PreW2KAccess </FONT></FONT></FONT></TD> <FONT size=2><FONT color=#000000><FONT face=Arial> S-1-5-32-554 </FONT></FONT></FONT></TR> <TR style="HEIGHT: 12.75pt" height=17> <TD style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" height=17 x:str=" PrintOps "><FONT size=2><FONT color=#000000><FONT face=Arial> PrintOps </FONT></FONT></FONT></TD> <FONT size=2><FONT color=#000000><FONT face=Arial> S-1-5-32-550 </FONT></FONT></FONT></TR> <TR style="HEIGHT: 12.75pt" height=17> <TD style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" height=17 x:str=" Proxy "><FONT size=2><FONT color=#000000><FONT face=Arial> Proxy </FONT></FONT></FONT></TD> <FONT size=2><FONT color=#000000><FONT face=Arial> S-1-5-8 </FONT></FONT></FONT></TR> <TR style="HEIGHT: 12.75pt" height=17> <TD style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" height=17 x:str=" RasServers "><FONT size=2><FONT color=#000000><FONT face=Arial> RasServers </FONT></FONT></FONT></TD> <FONT size=2><FONT color=#000000><FONT face=Arial> S-1-5-32-553 </FONT></FONT></FONT></TR> <TR style="HEIGHT: 12.75pt" height=17> <TD style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" height=17 x:str=" Replicator "><FONT size=2><FONT color=#000000><FONT face=Arial> Replicator </FONT></FONT></FONT></TD> <FONT size=2><FONT color=#000000><FONT face=Arial> S-1-5-32-552 </FONT></FONT></FONT></TR> <TR style="HEIGHT: 12.75pt" height=17> <TD style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" height=17 x:str=" RestrictedCode "><FONT size=2><FONT color=#000000><FONT face=Arial> RestrictedCode </FONT></FONT></FONT></TD> <FONT size=2><FONT color=#000000><FONT face=Arial> S-1-5-12 </FONT></FONT></FONT></TR> <TR style="HEIGHT: 12.75pt" height=17> <TD style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" height=17 x:str=" Self "><FONT size=2><FONT color=#000000><FONT face=Arial> Self </FONT></FONT></FONT></TD> <FONT size=2><FONT color=#000000><FONT face=Arial> S-1-5-10 </FONT></FONT></FONT></TR> <TR style="HEIGHT: 12.75pt" height=17> <TD style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" height=17 x:str=" ServerLogon "><FONT size=2><FONT color=#000000><FONT face=Arial> ServerLogon </FONT></FONT></FONT></TD> <FONT size=2><FONT color=#000000><FONT face=Arial> S-1-5-9 </FONT></FONT></FONT></TR> <TR style="HEIGHT: 12.75pt" height=17> <TD style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" height=17 x:str=" Service "><FONT size=2><FONT color=#000000><FONT face=Arial> Service </FONT></FONT></FONT></TD> <FONT size=2><FONT color=#000000><FONT face=Arial> S-1-5-6 </FONT></FONT></FONT></TR> <TR style="HEIGHT: 12.75pt" height=17> <TD style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" height=17 x:str=" System "><FONT size=2><FONT color=#000000><FONT face=Arial> System </FONT></FONT></FONT></TD> <FONT size=2><FONT color=#000000><FONT face=Arial> S-1-5-18 </FONT></FONT></FONT></TR> <TR style="HEIGHT: 12.75pt" height=17> <TD style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" height=17 x:str=" SystemOps "><FONT size=2><FONT color=#000000><FONT face=Arial> SystemOps </FONT></FONT></FONT></TD> <FONT size=2><FONT color=#000000><FONT face=Arial> S-1-5-32-549 </FONT></FONT></FONT></TR> <TR style="HEIGHT: 12.75pt" height=17> <TD style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" height=17 x:str=" TerminalServer "><FONT size=2><FONT color=#000000><FONT face=Arial> TerminalServer </FONT></FONT></FONT></TD> <FONT size=2><FONT color=#000000><FONT face=Arial> S-1-5-13 </FONT></FONT></FONT></TR> <TR style="HEIGHT: 12.75pt" height=17> <TD style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" height=17 x:str=" Users "><FONT size=2><FONT color=#000000><FONT face=Arial> Users </FONT></FONT></FONT></TD> <FONT size=2><FONT color=#000000><FONT face=Arial> S-1-5-32-545 </FONT></FONT></FONT></TR> <TR style="HEIGHT: 12.75pt" height=17> <TD style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" height=17 x:str=" World "><FONT size=2><FONT color=#000000><FONT face=Arial> World </FONT></FONT></FONT></TD> <FONT size=2><FONT color=#000000><FONT face=Arial> S-1-1-0 </FONT></FONT></FONT></TR></TABLE></P>

 

Categorieën:

Bijgewerkt: