简体   繁体   中英

Get Built-In Windows Accounts

I am trying to emulate the App Pool Identity window. Is there a way to fetch all the built-in account list similar to the app pool identity window?

在此处输入图片说明

The enumeration of all well known SID's (the "built in" accounts) can be found in System.Security.Principal.WellKnownSidType . Those enums are used with this constructor of SecurityIdentifier .

If you don't want a dropdown with 50 items I would just hard code the 4 or 5 you want in the dropdown and have those dropdown elements map to the corresponding enum members.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM